org.riotfamily.components.model.wrapper
Class ComponentListWrapper

java.lang.Object
  extended by org.riotfamily.components.model.wrapper.ValueWrapper<ComponentList>
      extended by org.riotfamily.components.model.wrapper.ComponentListWrapper

public class ComponentListWrapper
extends ValueWrapper<ComponentList>


Constructor Summary
ComponentListWrapper()
           
 
Method Summary
 ComponentListWrapper deepCopy()
          Creates a deep copy.
 void each(ValueCallback callback)
           
 ComponentList getValue()
          Returns the value that is passed to the form element when the value is edited.
 void setValue(ComponentList value)
           
 
Methods inherited from class org.riotfamily.components.model.wrapper.ValueWrapper
equals, getId, hashCode, setId, toString, unwrap, wrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentListWrapper

public ComponentListWrapper()
Method Detail

getValue

public ComponentList getValue()
Description copied from class: ValueWrapper
Returns the value that is passed to the form element when the value is edited. Subclasses will usually return the wrapped value, except for complex wrappers (like ListWrapper and MapWrapper) which return a self-reference.

Specified by:
getValue in class ValueWrapper<ComponentList>

setValue

public void setValue(ComponentList value)
Specified by:
setValue in class ValueWrapper<ComponentList>

deepCopy

public ComponentListWrapper deepCopy()
Description copied from class: ValueWrapper
Creates a deep copy. Subclasses will usually just create a new wrapper instance and and invoke ValueWrapper.setValue(Object) with the value returned by ValueWrapper.getValue(). Complex wrappers have to make sure that the deepCopy method is invoked for all nested values too.

Specified by:
deepCopy in class ValueWrapper<ComponentList>

each

public void each(ValueCallback callback)
Overrides:
each in class ValueWrapper<ComponentList>