org.riotfamily.forms.element.select
Class ElementSwitch
java.lang.Object
org.riotfamily.forms.AbstractElement
org.riotfamily.forms.AbstractEditorBase
org.riotfamily.forms.CompositeElement
org.riotfamily.forms.Container
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
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.Element |
focus, getEventTriggerId, getForm, getFormContext, getId, getParent, getStyleClass, isEnabled, isRequired, isVisible, render, setEnabled, setForm, setFormContext, setId, setParent, setRequired |
ElementSwitch
public ElementSwitch()
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