org.apache.cocoon.forms.formmodel
Class UnionDefinition

java.lang.Object
  extended by org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
      extended by org.apache.cocoon.forms.formmodel.AbstractContainerDefinition
          extended by org.apache.cocoon.forms.formmodel.UnionDefinition
All Implemented Interfaces:
ContainerDefinition, WidgetDefinition, Locatable

public class UnionDefinition
extends AbstractContainerDefinition

The WidgetDefinition corresponding to a Union widget.

Version:
$Id: UnionDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractContainerDefinition
definitions
 
Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
createListener, enclosingLibrary, parent
 
Constructor Summary
UnionDefinition()
           
 
Method Summary
 Widget createInstance()
          Creates and returns a widget based on this widget definition.
 String getCaseWidgetId()
           
 void initializeFrom(WidgetDefinition definition)
          initialize this definition with the other, sort of like a copy constructor
 void setCaseWidgetId(String id)
           
 
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractContainerDefinition
addWidgetDefinition, checkCompleteness, createWidget, createWidgets, getWidgetDefinition, getWidgetDefinitions, hasWidget, resolve
 
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition
addCreateListener, addValidator, checkMutable, fireCreateEvent, generateDisplayData, generateDisplayData, generateLabel, getAttribute, getEnclosingLibrary, getFormDefinition, getId, getLocation, getParent, getState, makeImmutable, setAttributes, setDisplayData, setEnclosingLibrary, setId, setLocation, setParent, setState, validate, widgetCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.forms.formmodel.WidgetDefinition
generateDisplayData, generateDisplayData, generateLabel, getAttribute, getEnclosingLibrary, getFormDefinition, getId, getLocation, setEnclosingLibrary, setParent, validate
 

Constructor Detail

UnionDefinition

public UnionDefinition()
Method Detail

initializeFrom

public void initializeFrom(WidgetDefinition definition)
                    throws Exception
initialize this definition with the other, sort of like a copy constructor

Specified by:
initializeFrom in interface WidgetDefinition
Overrides:
initializeFrom in class AbstractContainerDefinition
Throws:
Exception

setCaseWidgetId

public void setCaseWidgetId(String id)

getCaseWidgetId

public String getCaseWidgetId()

createInstance

public Widget createInstance()
Description copied from interface: WidgetDefinition
Creates and returns a widget based on this widget definition.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.