Package org.apache.tapestry5.services
Interface PropertyEditContext
- All Superinterfaces:
AnnotationProvider
Defines a context for editing a property of a bean via
BeanEditor
.
This value is made available to blocks via the Environmental
annotation.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the message catalog for the container of theBeanEditForm
, which is the correct place to look for strings used for labels, etc.getLabel()
Returns the user-presentable label, for use with theLabel
component, or to be integrated into any validation error messages.Returns a string that identifies the property, usually the property name.Returns the type of the property being edited.Returns the current value of the property being edited (the context encapsulates the object containing the property).getTranslator
(Field field) Returns the translator appropriate for the field (this is based on the property type).getValidator
(Field field) Returns the FieldValidator for the field.void
setPropertyValue
(Object value) Updates the value of the property being edited (the context encapsulates the object containing the property).Methods inherited from interface org.apache.tapestry5.commons.AnnotationProvider
getAnnotation
-
Method Details
-
getPropertyValue
Returns the current value of the property being edited (the context encapsulates the object containing the property). -
setPropertyValue
Updates the value of the property being edited (the context encapsulates the object containing the property).- Parameters:
value
- new value for the property
-
getLabel
Returns the user-presentable label, for use with theLabel
component, or to be integrated into any validation error messages. -
getTranslator
Returns the translator appropriate for the field (this is based on the property type).- Parameters:
field
-- See Also:
-
getValidator
Returns the FieldValidator for the field.- See Also:
-
getPropertyId
Returns a string that identifies the property, usually the property name. This is used as the basis for the client-side client id. -
getPropertyType
Returns the type of the property being edited. -
getContainerMessages
Returns the message catalog for the container of theBeanEditForm
, which is the correct place to look for strings used for labels, etc.
-