org.riotfamily.forms.element.collection
Class CollectionItemEditorBinding

java.lang.Object
  extended by org.riotfamily.forms.element.collection.CollectionItemEditorBinding
All Implemented Interfaces:
EditorBinding

public class CollectionItemEditorBinding
extends Object
implements EditorBinding


Constructor Summary
CollectionItemEditorBinding(EditorBinding parentBinding)
           
 
Method Summary
 Class<?> getBeanClass()
          Returns the type of the bean the property belongs to.
 Editor getEditor()
          Returns the Editor.
 EditorBinder getEditorBinder()
          Returns the EditorBinder.
 String getProperty()
          Returns the property name.
 PropertyEditor getPropertyEditor()
          Returns a PropertyEditor capable of handling the property type.
 String getPropertyPath()
          Returns the property path.
 Class<?> getPropertyType()
          Returns the type of the property.
 Object getValue()
          Returns the actual property value.
 boolean isEditingExistingBean()
          Returns whether the edited bean existed before, or whether it was created by the current form.
 void setEditor(Editor editor)
           
 void setExistingItem(boolean existingItem)
           
 void setValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionItemEditorBinding

public CollectionItemEditorBinding(EditorBinding parentBinding)
Method Detail

getBeanClass

public Class<?> getBeanClass()
Description copied from interface: EditorBinding
Returns the type of the bean the property belongs to.

Specified by:
getBeanClass in interface EditorBinding

isEditingExistingBean

public boolean isEditingExistingBean()
Description copied from interface: EditorBinding
Returns whether the edited bean existed before, or whether it was created by the current form.

Specified by:
isEditingExistingBean in interface EditorBinding

setExistingItem

public void setExistingItem(boolean existingItem)

setEditor

public void setEditor(Editor editor)

getEditor

public Editor getEditor()
Description copied from interface: EditorBinding
Returns the Editor.

Specified by:
getEditor in interface EditorBinding

getEditorBinder

public EditorBinder getEditorBinder()
Description copied from interface: EditorBinding
Returns the EditorBinder. Can be used by elements to access other properties than the one they are bound to.

Specified by:
getEditorBinder in interface EditorBinding

getProperty

public String getProperty()
Description copied from interface: EditorBinding
Returns the property name.

Specified by:
getProperty in interface EditorBinding

getPropertyEditor

public PropertyEditor getPropertyEditor()
Description copied from interface: EditorBinding
Returns a PropertyEditor capable of handling the property type.

Specified by:
getPropertyEditor in interface EditorBinding

getPropertyPath

public String getPropertyPath()
Description copied from interface: EditorBinding
Returns the property path.

Specified by:
getPropertyPath in interface EditorBinding

getPropertyType

public Class<?> getPropertyType()
Description copied from interface: EditorBinding
Returns the type of the property.

Specified by:
getPropertyType in interface EditorBinding

getValue

public Object getValue()
Description copied from interface: EditorBinding
Returns the actual property value.

Specified by:
getValue in interface EditorBinding

setValue

public void setValue(Object value)