|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditorBinder
Method Summary | |
---|---|
void |
bind(Editor editor,
String property)
Binds the given editor to the property with the specified name. |
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 |
registerPropertyEditors(PropertyEditorRegistrar[] registrars)
|
EditorBinder |
replace(EditorBinder previousBinder)
|
void |
setBackingObject(Object backingObject)
|
void |
setPropertyValue(String property,
Object value)
|
Methods inherited from interface org.springframework.beans.PropertyEditorRegistry |
---|
findCustomEditor, registerCustomEditor, registerCustomEditor |
Method Detail |
---|
Map<String,EditorBinding> getBindings()
EditorBinder replace(EditorBinder previousBinder)
Class<?> getBeanClass()
Object getBackingObject()
void setBackingObject(Object backingObject)
boolean isEditingExistingBean()
Object getPropertyValue(String property)
void setPropertyValue(String property, Object value)
Class<?> getPropertyType(String property)
PropertyEditor getPropertyEditor(Class<?> type, String propertyPath)
void bind(Editor editor, String property)
editor
- the editor to bindproperty
- the name of the property the editor is to be bound toEditor getEditor(String property)
String[] getBoundProperties()
void initEditors()
null if the backingObject is not set.
- See Also:
Editor.setValue(Object)
Object populateBackingObject()
null
a new
instance is created.
void registerPropertyEditors(PropertyEditorRegistrar[] registrars)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |