Home » tapestry-src-5.0.19 » org.apache.tapestry5.beaneditor » [javadoc | source]
org.apache.tapestry5.beaneditor
public interface: PropertyModel [javadoc | source]

All Implemented Interfaces:
    AnnotationProvider

All Known Implementing Classes:
    PropertyModelImpl

Part of a org.apache.tapestry5.beaneditor.BeanModel that defines the attributes of a single property of a bean.

A PropertyModel is also an AnnotationProvider , as long as the org.apache.tapestry5.PropertyConduit is non-null. When there is no property conduit, then org.apache.tapestry5.ioc.AnnotationProvider#getAnnotation(Class) will return null.
Method from org.apache.tapestry5.beaneditor.PropertyModel Summary:
dataType,   getConduit,   getDataType,   getId,   getLabel,   getPropertyName,   getPropertyType,   isSortable,   label,   model,   sortable
Method from org.apache.tapestry5.beaneditor.PropertyModel Detail:
 public PropertyModel dataType(String dataType)
    Changes the data type for the property.
 public PropertyConduit getConduit()
    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.
 public String getDataType()
    Returns a logical name for the type of UI needed to view or edit the property. This is initially determined from the property type.
 public String getId()
    Returns the id used to access other resources (this is based on the property name, but with any excess punctuation stripped out).
 public String getLabel()
    Returns a user-presentable label for the property.
 public String getPropertyName()
    Returns the name of the property (which may, in fact, be a property expression).
 public Class getPropertyType()
    Returns the type of the property.
 public boolean isSortable()
    Returns true if the property can be used for sorting. By default, this is true only if the property type implements Comparable.
 public PropertyModel label(String label)
    Changes the label for the property to the provided value.
 public BeanModel model()
    Returns the containing model, often used for "fluent" construction of the model.
 public PropertyModel sortable(boolean sortable)
    Updates sortable and returns the model for further changes.