org.riotfamily.forms
Interface EditorBinding

All Known Implementing Classes:
CollectionItemEditorBinding

public interface EditorBinding

Provides information about a bound editor.


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.
 

Method Detail

getEditorBinder

EditorBinder getEditorBinder()
Returns the EditorBinder. Can be used by elements to access other properties than the one they are bound to.


getEditor

Editor getEditor()
Returns the Editor.


getProperty

String getProperty()
Returns the property name.


getValue

Object getValue()
Returns the actual property value.


getBeanClass

Class<?> getBeanClass()
Returns the type of the bean the property belongs to.


getPropertyPath

String getPropertyPath()
Returns the property path.


getPropertyType

Class<?> getPropertyType()
Returns the type of the property.


getPropertyEditor

PropertyEditor getPropertyEditor()
Returns a PropertyEditor capable of handling the property type.


isEditingExistingBean

boolean isEditingExistingBean()
Returns whether the edited bean existed before, or whether it was created by the current form.