org.riotfamily.pages.riot.form
Class PagePropertiesEditor

java.lang.Object
  extended by org.riotfamily.forms.AbstractElement
      extended by org.riotfamily.forms.AbstractEditorBase
          extended by org.riotfamily.forms.CompositeElement
              extended by org.riotfamily.pages.riot.form.PagePropertiesEditor
All Implemented Interfaces:
BackingObjectAware, BeanEditor, Editor, Element, ChangeListener, NestedEditor, BeanFactoryAware

public class PagePropertiesEditor
extends CompositeElement
implements Editor, BeanEditor, ChangeListener

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

Field Summary
 
Fields inherited from class org.riotfamily.forms.AbstractElement
log
 
Constructor Summary
PagePropertiesEditor(FormRepository repository, Form form, String pageType)
           
 
Method Summary
 void bind(Editor editor, String property)
           
 Editor getEditor(String property)
           
 String getLabel()
          Returns the label.
 Object getValue()
          Returns the value.
 void setBackingObject(Object obj)
           
 void setBeanClass(Class<?> beanClass)
           
 void setValue(Object value)
          Sets the (initial) value, typically retrieved from a backing object.
 void valueChanged(ChangeEvent event)
           
 
Methods inherited from class org.riotfamily.forms.CompositeElement
addComponent, afterFormSet, focus, getComponents, initComponent, initCompositeElement, isCompositeElement, isEmpty, processRequest, processRequestCompontents, processRequestInternal, removeComponent, renderInternal, setBeanFactory
 
Methods inherited from class org.riotfamily.forms.AbstractEditorBase
addChangeListener, afterBindingSet, fireChangeEvent, getEditorBinding, getFieldName, getHint, getParamName, hasListeners, setEditorBinding, setFieldName, setParamName
 
Methods inherited from class org.riotfamily.forms.AbstractElement
afterFormContextSet, getEventTriggerId, getForm, getFormContext, getFormListener, getId, getParent, getStyleClass, getSystemStyleClass, getWrapperStyleClass, isEnabled, isRequired, isVisible, render, render, setEnabled, setForm, setFormContext, setHint, setId, setInline, setLabel, setParent, setReadOnly, setRequired, setStyleClass, setVisible, setWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.riotfamily.forms.Editor
addChangeListener, getEditorBinding, getFieldName, setEditorBinding, setFieldName
 
Methods inherited from interface org.riotfamily.forms.Element
focus, getEventTriggerId, getForm, getFormContext, getId, getParent, getStyleClass, isCompositeElement, isEnabled, isRequired, isVisible, processRequest, render, setEnabled, setForm, setFormContext, setId, setParent, setRequired
 

Constructor Detail

PagePropertiesEditor

public PagePropertiesEditor(FormRepository repository,
                            Form form,
                            String pageType)
Method Detail

getLabel

public String getLabel()
Description copied from interface: Editor
Returns the label.

Specified by:
getLabel in interface Editor
Overrides:
getLabel in class AbstractEditorBase

getValue

public Object getValue()
Description copied from interface: Editor
Returns the value.

Specified by:
getValue in interface Editor

setValue

public void setValue(Object value)
Description copied from interface: Editor
Sets the (initial) value, typically retrieved from a backing object.

Specified by:
setValue in interface Editor

setBackingObject

public void setBackingObject(Object obj)
Specified by:
setBackingObject in interface BackingObjectAware

getEditor

public Editor getEditor(String property)
Specified by:
getEditor in interface NestedEditor

bind

public void bind(Editor editor,
                 String property)
Specified by:
bind in interface BeanEditor

setBeanClass

public void setBeanClass(Class<?> beanClass)
Specified by:
setBeanClass in interface BeanEditor

valueChanged

public void valueChanged(ChangeEvent event)
Specified by:
valueChanged in interface ChangeListener