| org.apache.tapestry.beaneditor.BeanModel
All known Subclasses: org.apache.tapestry.internal.beaneditor.BeanModelImpl,
BeanModel | public interface BeanModel (Code) | | Provides the information necessary to build a user interface to view, create or edit an instance
of a particular type.
BeanModels are not threadsafe, they are also not serializable.
See Also: BeanModelSource |
add | PropertyModel add(String propertyName)(Code) | | Adds a new property to the model, returning its mutable model for further refinement.
Parameters: propertyName - name of property to add the model for the property throws: RuntimeException - if the property already exists |
add | PropertyModel add(String propertyName, PropertyConduit conduit)(Code) | | Adds a new property to the model, returning its mutable model for further refinement.
Parameters: propertyName - name of property to add Parameters: conduit - the conduit used to read or update the property; this may be null for a syntheticor placeholder property the model for the property throws: RuntimeException - if the property already exists |
get | PropertyModel get(String propertyName)(Code) | | Returns the named model.
Parameters: propertyName - name of property to retrieve model for (case is ignored) the model for the property throws: RuntimeException - if the bean editor model does not have a property model for the provided name |
getBeanType | Class getBeanType()(Code) | | Returns the type of bean for which this model was initially created.
|
getPropertyNames | List<String> getPropertyNames()(Code) | | Returns a list of the editable properties of the bean, in presentation order.
|
remove | BeanModel remove(String... propertyName)(Code) | | Removes the named properties from the model, if present. It is not considered an error to
remove a property that does not exist.
Parameters: propertyName - the names of properties to be removed (case insensitive) the model for futher modifications |
|
|