|
|||||||||
| 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()
EditorBindernull a new
instance is created.
populateBackingObject in interface EditorBinder
public void bind(Editor editor,
String property)
EditorBinder
bind in interface EditorBindereditor - the editor to bindproperty - the name of the property the editor is to be bound to
public PropertyEditor findCustomEditor(Class requiredType,
String propertyPath)
findCustomEditor in interface PropertyEditorRegistrypublic Object getBackingObject()
getBackingObject in interface EditorBinderpublic Class<?> getBeanClass()
getBeanClass in interface EditorBinderpublic Map<String,EditorBinding> getBindings()
getBindings in interface EditorBinderpublic String[] getBoundProperties()
EditorBinder
getBoundProperties in interface EditorBinderpublic Editor getEditor(String property)
EditorBinder
getEditor in interface EditorBinderpublic Class<?> getPropertyType(String property)
getPropertyType in interface EditorBinderpublic Object getPropertyValue(String property)
getPropertyValue in interface EditorBinder
public PropertyEditor getPropertyEditor(Class<?> type,
String propertyPath)
getPropertyEditor in interface EditorBinderpublic void initEditors()
EditorBindernull 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 PropertyEditorRegistrypublic void registerPropertyEditors(PropertyEditorRegistrar[] registrars)
registerPropertyEditors in interface EditorBinderpublic EditorBinder replace(EditorBinder previousBinder)
replace in interface EditorBinderpublic 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 | ||||||||