| org.apache.tapestry.beaneditor.PropertyModel
All known Subclasses: org.apache.tapestry.internal.beaneditor.PropertyModelImpl,
PropertyModel | public interface PropertyModel (Code) | | Part of a
BeanModel that defines the attributes of a single property of a bean.
|
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 punctiuation stripped out). | String | getLabel() Returns a user-presentable label for the property. | int | getOrder() Returns the order vlaue, used to sort the properties into presentation order. | 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 | order(int order) Changes the order for the property. | PropertyModel | sortable(boolean sortable) Updates sortable and returns the model for further changes. |
dataType | PropertyModel dataType(String dataType)(Code) | | Changes the data type for the property.
Parameters: dataType - the property edit model, for further changes |
getConduit | PropertyConduit getConduit()(Code) | | Returns an object used to read or update the property. For virtual properties (properties
that do not actually exist on the bean), the conduit may be null until one is provided via
MutablePropertyEditModel.conduit(PropertyConduit) .
|
getDataType | String getDataType()(Code) | | Returns a logical name for the type of UI needed to view or edit the property. This is
initially determined from the property type.
|
getId | String getId()(Code) | | Returns the id used to access other resources (this is based on the property name, but with
any excess punctiuation stripped out).
|
getLabel | String getLabel()(Code) | | Returns a user-presentable label for the property.
|
getOrder | int getOrder()(Code) | | Returns the order vlaue, used to sort the properties into presentation order.
|
getPropertyName | String getPropertyName()(Code) | | Returns the name of the property (which may, in fact, be a property expression).
|
getPropertyType | Class getPropertyType()(Code) | | Returns the type of the property.
|
isSortable | boolean isSortable()(Code) | | Returns true if the property can be used for sorting. By default, this is true only if the
property type implements Comparable.
|
label | PropertyModel label(String label)(Code) | | Changes the label for the property to the provided value.
Parameters: label - new label for property the property edit model, for further changes |
model | BeanModel model()(Code) | | Returns the containing model, often used for "fluent" construction of the model.
|
order | PropertyModel order(int order)(Code) | | Changes the order for the property. The properties are sorted by order (and then by name for
identical orders) when building the user interface.
|
sortable | PropertyModel sortable(boolean sortable)(Code) | | Updates sortable and returns the model for further changes.
|
|
|