|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.beaneditor.PropertyModelImpl
public class PropertyModelImpl
Constructor Summary | |
---|---|
PropertyModelImpl(BeanModel model,
String name,
PropertyConduit conduit,
Messages messages)
|
Method Summary | ||
---|---|---|
PropertyModel |
dataType(String dataType)
Changes the data type for the property. |
|
|
getAnnotation(Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance. |
|
PropertyConduit |
getConduit()
Returns an object used to read or update the property. |
|
String |
getDataType()
Returns a logical name for the type of UI needed to view or edit the property. |
|
String |
getId()
Returns the id used to access other resources (this is based on the property name, but with any excess punctuation stripped out). |
|
String |
getLabel()
Returns a user-presentable label for the property. |
|
String |
getPropertyName()
Returns the name of the property (which may, in fact, be a property expression). |
|
Class |
getPropertyType()
Returns the type of the property. |
|
boolean |
isSortable()
Returns true if the property can be used for sorting. |
|
PropertyModel |
label(String label)
Changes the label for the property to the provided value. |
|
BeanModel |
model()
Returns the containing model, often used for "fluent" construction of the model. |
|
PropertyModel |
sortable(boolean sortable)
Updates sortable and returns the model for further changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyModelImpl(BeanModel model, String name, PropertyConduit conduit, Messages messages)
Method Detail |
---|
public String getId()
PropertyModel
getId
in interface PropertyModel
public Class getPropertyType()
PropertyModel
getPropertyType
in interface PropertyModel
public PropertyConduit getConduit()
PropertyModel
getConduit
in interface PropertyModel
public PropertyModel label(String label)
PropertyModel
label
in interface PropertyModel
label
- new label for property
public String getLabel()
PropertyModel
getLabel
in interface PropertyModel
public String getPropertyName()
PropertyModel
getPropertyName
in interface PropertyModel
public BeanModel model()
PropertyModel
model
in interface PropertyModel
public PropertyModel dataType(String dataType)
PropertyModel
dataType
in interface PropertyModel
public String getDataType()
PropertyModel
getDataType
in interface PropertyModel
public boolean isSortable()
PropertyModel
isSortable
in interface PropertyModel
public PropertyModel sortable(boolean sortable)
PropertyModel
sortable
in interface PropertyModel
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvider
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |