|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyModel
Part of a BeanModel
that defines the attributes of a single property of a
bean.
AnnotationProvider
, as long as the PropertyConduit
is
non-null. When there is no property conduit, then AnnotationProvider.getAnnotation(Class)
will return null.
Method Summary | |
---|---|
PropertyModel |
dataType(String dataType)
Changes the data type for the property. |
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 interface org.apache.tapestry5.ioc.AnnotationProvider |
---|
getAnnotation |
Method Detail |
---|
String getPropertyName()
String getId()
String getLabel()
Class getPropertyType()
String getDataType()
PropertyModel dataType(String dataType)
dataType
-
PropertyConduit getConduit()
PropertyModel label(String label)
label
- new label for property
BeanModel model()
boolean isSortable()
PropertyModel sortable(boolean sortable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |