|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanModelSource
Used by a component to create a default BeanModel
for a particular bean
class. Also provides support to the model by generating validation information for individual fields.
BeanEditor
and Grid
comopnents.
PropertyConduitSource
Method Summary | ||
---|---|---|
|
create(Class<T> beanClass,
boolean filterReadOnlyProperties,
Messages messages)
Deprecated. use createDisplayModel(Class, org.apache.tapestry5.ioc.Messages) or createEditModel(Class, org.apache.tapestry5.ioc.Messages) |
|
|
createDisplayModel(Class<T> beanClass,
Messages messages)
Creates a model for display purposes; this may include properties which are read-only. |
|
|
createEditModel(Class<T> beanClass,
Messages messages)
Creates a model for edit and update purposes, only properties that are fully read-write are included. |
Method Detail |
---|
<T> BeanModel<T> create(Class<T> beanClass, boolean filterReadOnlyProperties, Messages messages)
createDisplayModel(Class, org.apache.tapestry5.ioc.Messages)
or createEditModel(Class, org.apache.tapestry5.ioc.Messages)
ReorderProperties
annotation. The labels for the
properties are derived from the property names, but if the component's message catalog has keys of the form
propertyName-label
, then those will be used instead.
Models are mutable, so they are not cached, a fresh instance is created each time.
beanClass
- class of object to be editedfilterReadOnlyProperties
- if true, then properties that are read-only will be skipped (leaving only
read-write properties, appropriate for BeanEditForm
,
etc.). If false, then both read-only and read-write properties will be included
(appropriate for Grid
or BeanDisplay
).messages
- Used to find explicit overrides of
<T> BeanModel<T> createDisplayModel(Class<T> beanClass, Messages messages)
beanClass
- class of object to be editedmessages
-
<T> BeanModel<T> createEditModel(Class<T> beanClass, Messages messages)
beanClass
- class of object to be editedmessages
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |