org.riotfamily.forms
Class MapEditorBinder

java.lang.Object
  extended by org.springframework.beans.PropertyEditorRegistrySupport
      extended by org.riotfamily.forms.AbstractEditorBinder
          extended by org.riotfamily.forms.MapEditorBinder
All Implemented Interfaces:
EditorBinder, PropertyEditorRegistry

public class MapEditorBinder
extends AbstractEditorBinder

Since:
7.0
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
MapEditorBinder(Class<? extends Map> mapClass)
           
MapEditorBinder(Map<Object,Object> map)
           
 
Method Summary
 Object getBackingObject()
           
 Class<?> getBeanClass()
           
 Class<?> getPropertyType(String propertyName)
           
 Object getPropertyValue(String propertyName)
           
 boolean isEditingExistingBean()
           
protected  void setBackingObjectInternal(Object backingObject)
           
 void setPropertyValue(String propertyName, Object value)
           
 
Methods inherited from class org.riotfamily.forms.AbstractEditorBinder
bind, findEditorByProperty, getBindings, getBoundProperties, getEditor, getPropertyEditor, getPropertyPath, initEditors, populateBackingObject, registerPropertyEditors, replace, setBackingObject
 
Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, isSharedEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, registerSharedEditor, useConfigValueEditors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditor
 

Constructor Detail

MapEditorBinder

public MapEditorBinder(Map<Object,Object> map)

MapEditorBinder

public MapEditorBinder(Class<? extends Map> mapClass)
Method Detail

setBackingObjectInternal

protected void setBackingObjectInternal(Object backingObject)
Overrides:
setBackingObjectInternal in class AbstractEditorBinder

isEditingExistingBean

public boolean isEditingExistingBean()

getBackingObject

public Object getBackingObject()

getBeanClass

public Class<?> getBeanClass()

getPropertyType

public Class<?> getPropertyType(String propertyName)
Specified by:
getPropertyType in interface EditorBinder
Specified by:
getPropertyType in class AbstractEditorBinder

getPropertyValue

public Object getPropertyValue(String propertyName)

setPropertyValue

public void setPropertyValue(String propertyName,
                             Object value)