org.riotfamily.forms
Class BeanEditorBinder

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

public class BeanEditorBinder
extends AbstractEditorBinder

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

Constructor Summary
BeanEditorBinder(Class<?> beanClass)
           
BeanEditorBinder(Object backingObject)
           
 
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

BeanEditorBinder

public BeanEditorBinder(Object backingObject)

BeanEditorBinder

public BeanEditorBinder(Class<?> beanClass)
Method Detail

getBackingObject

public Object getBackingObject()

setBackingObjectInternal

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

isEditingExistingBean

public boolean isEditingExistingBean()

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)