|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyEditContext
Defines a context for editing a property of a bean via BeanEditor
.
This value is made available to blocks via the Environmental
annotation.
BeanBlockSource
Method Summary | |
---|---|
Messages |
getContainerMessages()
Returns the message catalog for the container of the BeanEditForm ,
which is the correct place to look for strings used for labels, etc. |
String |
getLabel()
Returns the user-presentable label, for use with the Label
component, or to be integrated into any validation error messages. |
String |
getPropertyId()
Returns a string that identifies the property, usually the property name. |
Class |
getPropertyType()
Returns the type of the property being edited. |
Object |
getPropertyValue()
Returns the current value of the property being edited (the context encapsulates the object containing the property). |
FieldTranslator |
getTranslator(Field field)
Returns the translator appropriate for the field (this is based on the property type). |
FieldValidator |
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.ioc.AnnotationProvider |
---|
getAnnotation |
Method Detail |
---|
Object getPropertyValue()
void setPropertyValue(Object value)
value
- new value for the propertyString getLabel()
Label
component, or to be integrated into any validation error messages.
FieldTranslator getTranslator(Field field)
field
- TranslatorSource
FieldValidator getValidator(Field field)
Validate
,
FieldValidatorDefaultSource
String getPropertyId()
Class getPropertyType()
Messages getContainerMessages()
BeanEditForm
,
which is the correct place to look for strings used for labels, etc.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |