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

All Known Implementing Classes:
    BeanModelImpl

Provides the information necessary to build a user interface to view, create or edit an instance of a particular type.

BeanModels are not thread-safe, they are also not serializable.

Here, and in org.apache.tapestry5.beaneditor.PropertyModel , the term "propertyName" is used for simplicitly. However, a full {@linkplain org.apache.tapestry5.services.PropertyConduitSource#create(Class, String) property expression} may be utilized when {@linkplain #add(String) adding new properties to an existing BeanModel}.

Method from org.apache.tapestry5.beaneditor.BeanModel Summary:
add,   add,   add,   add,   exclude,   get,   getBeanType,   getById,   getPropertyNames,   include,   newInstance,   reorder
Method from org.apache.tapestry5.beaneditor.BeanModel Detail:
 public PropertyModel add(String propertyName)
    Adds a new property to the model, returning its mutable model for further refinement. The property is added to the end of the list of properties.
 public PropertyModel add(String propertyName,
    PropertyConduit conduit)
    Adds a new property to the model, returning its mutable model for further refinement.
 public PropertyModel add(RelativePosition position,
    String existingPropertyName,
    String propertyName)
    Adds a new property to the model, ordered before or after an existing property.
 public PropertyModel add(RelativePosition position,
    String existingPropertyName,
    String propertyName,
    PropertyConduit conduit)
    Adds a new property to the model, ordered before or after an existing property.
 public BeanModel exclude(String propertyNames)
    Removes the named properties from the model, if present. It is not considered an error to remove a property that does not exist.
 public PropertyModel get(String propertyName)
    Returns the named model.
 public Class<T> getBeanType()
    Returns the type of bean for which this model was initially created.
 public PropertyModel getById(String propertyId)
    Returns the identified model. Property ids are a stripped version of the property name. Case is ignored.
 public List<String> getPropertyNames()
    Returns a list of the editable properties of the bean, in presentation order.
 public BeanModel include(String propertyNames)
    Re-orders the properties of the model into the specified order. Existing properties that are not indicated are <>.
 public T newInstance()
 public BeanModel reorder(String propertyNames)
    Re-orders the properties of the model into the specified order. Existing properties that are not indicated are retained, but ordered to the end of the list.