org.riotfamily.forms.element.select
Class ElementSwitch

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.forms.Container
                  extended by org.riotfamily.forms.element.select.ElementSwitch
All Implemented Interfaces:
BackingObjectAware, ContainerElement, Editor, Element, ChangeListener, NestedEditor, BeanFactoryAware

public class ElementSwitch
extends Container
implements Editor, NestedEditor, ChangeListener


Field Summary
 
Fields inherited from class org.riotfamily.forms.AbstractElement
log
 
Constructor Summary
ElementSwitch()
           
 
Method Summary
 void addElement(Element element)
           
protected  void afterBindingSet()
           
 Editor getEditor(String property)
           
 Object getValue()
          Returns the value.
 boolean isCompositeElement()
          Helper method to check for composite elements in templates.
 void processRequest(FormRequest request)
          Calls processRequestInternal() and afterwards processRequestComponents() to process the components.
 void setBackingObject(Object obj)
           
 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.Container
getElements, removeElement
 
Methods inherited from class org.riotfamily.forms.CompositeElement
addComponent, afterFormSet, focus, getComponents, initComponent, initCompositeElement, isEmpty, processRequestCompontents, processRequestInternal, removeComponent, renderInternal, setBeanFactory
 
Methods inherited from class org.riotfamily.forms.AbstractEditorBase
addChangeListener, fireChangeEvent, getEditorBinding, getFieldName, getHint, getLabel, 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, getLabel, setEditorBinding, setFieldName
 
Methods inherited from interface org.riotfamily.forms.Element
focus, getEventTriggerId, getForm, getFormContext, getId, getParent, getStyleClass, isEnabled, isRequired, isVisible, render, setEnabled, setForm, setFormContext, setId, setParent, setRequired
 

Constructor Detail

ElementSwitch

public ElementSwitch()
Method Detail

afterBindingSet

protected void afterBindingSet()
Overrides:
afterBindingSet in class AbstractEditorBase

isCompositeElement

public boolean isCompositeElement()
Description copied from class: CompositeElement
Helper method to check for composite elements in templates. Always returns true

Specified by:
isCompositeElement in interface Element
Overrides:
isCompositeElement in class CompositeElement

addElement

public void addElement(Element element)
Specified by:
addElement in interface ContainerElement
Overrides:
addElement in class Container

processRequest

public void processRequest(FormRequest request)
Description copied from class: CompositeElement
Calls processRequestInternal() and afterwards processRequestComponents() to process the components.

Specified by:
processRequest in interface Element
Overrides:
processRequest in class CompositeElement

valueChanged

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

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

getEditor

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

setBackingObject

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