|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.pages.riot.form.LocalizedEditorBinder
public class LocalizedEditorBinder
EditorBinder for localized elements
that returns null, if the value is not
overwritten
.
Constructor Summary | |
---|---|
LocalizedEditorBinder(EditorBinder delegate)
|
Method Summary | |
---|---|
void |
bind(Editor editor,
String property)
Binds the given editor to the property with the specified name. |
PropertyEditor |
findCustomEditor(Class requiredType,
String propertyPath)
|
Object |
getBackingObject()
|
Class<?> |
getBeanClass()
|
Map<String,EditorBinding> |
getBindings()
|
String[] |
getBoundProperties()
Returns the names of all properties an editor is bound to. |
Editor |
getEditor(String property)
Returns the editor that is bound to the given property. |
PropertyEditor |
getPropertyEditor(Class<?> type,
String propertyPath)
|
Class<?> |
getPropertyType(String property)
|
Object |
getPropertyValue(String property)
|
void |
initEditors()
Initializes each editor with the property value it is bound to or null |
boolean |
isEditingExistingBean()
|
Object |
populateBackingObject()
Sets the properties of the backingObject to the values provided by the corresponding editor. |
void |
registerCustomEditor(Class requiredType,
PropertyEditor propertyEditor)
|
void |
registerCustomEditor(Class requiredType,
String propertyPath,
PropertyEditor propertyEditor)
|
void |
registerElement(EditorBinding binding,
AbstractLocalizedElement editor)
|
void |
registerPropertyEditors(PropertyEditorRegistrar[] registrars)
|
EditorBinder |
replace(EditorBinder previousBinder)
|
void |
setBackingObject(Object backingObject)
|
void |
setPropertyValue(String property,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalizedEditorBinder(EditorBinder delegate)
Method Detail |
---|
public void registerElement(EditorBinding binding, AbstractLocalizedElement editor)
public Object populateBackingObject()
EditorBinder
null
a new
instance is created.
populateBackingObject
in interface EditorBinder
public void bind(Editor editor, String property)
EditorBinder
bind
in interface EditorBinder
editor
- the editor to bindproperty
- the name of the property the editor is to be bound topublic PropertyEditor findCustomEditor(Class requiredType, String propertyPath)
findCustomEditor
in interface PropertyEditorRegistry
public Object getBackingObject()
getBackingObject
in interface EditorBinder
public Class<?> getBeanClass()
getBeanClass
in interface EditorBinder
public Map<String,EditorBinding> getBindings()
getBindings
in interface EditorBinder
public String[] getBoundProperties()
EditorBinder
getBoundProperties
in interface EditorBinder
public Editor getEditor(String property)
EditorBinder
getEditor
in interface EditorBinder
public Class<?> getPropertyType(String property)
getPropertyType
in interface EditorBinder
public Object getPropertyValue(String property)
getPropertyValue
in interface EditorBinder
public PropertyEditor getPropertyEditor(Class<?> type, String propertyPath)
getPropertyEditor
in interface EditorBinder
public void initEditors()
EditorBinder
null if the backingObject is not set.
- Specified by:
initEditors
in interface EditorBinder
- See Also:
Editor.setValue(Object)
public boolean isEditingExistingBean()
isEditingExistingBean
in interface EditorBinder
public void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)
registerCustomEditor
in interface PropertyEditorRegistry
public void registerCustomEditor(Class requiredType, String propertyPath, PropertyEditor propertyEditor)
registerCustomEditor
in interface PropertyEditorRegistry
public void registerPropertyEditors(PropertyEditorRegistrar[] registrars)
registerPropertyEditors
in interface EditorBinder
public EditorBinder replace(EditorBinder previousBinder)
replace
in interface EditorBinder
public void setBackingObject(Object backingObject)
setBackingObject
in interface EditorBinder
public void setPropertyValue(String property, Object value)
setPropertyValue
in interface EditorBinder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |