org.apache.cocoon.woody.formmodel
Class AbstractContainerDefinition

java.lang.Object
  extended by org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
      extended by org.apache.cocoon.woody.formmodel.AbstractContainerDefinition
All Implemented Interfaces:
ContainerDefinition, WidgetDefinition
Direct Known Subclasses:
ClassDefinition, FormDefinition, RepeaterDefinition, StructDefinition, UnionDefinition

public abstract class AbstractContainerDefinition
extends AbstractWidgetDefinition
implements ContainerDefinition

The AbstractContainerDefinition corresponding to an AbstractContainerWidget.

Version:
$Id: AbstractContainerDefinition.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Timothy Larson

Field Summary
protected  ContainerDefinitionDelegate definitions
           
 
Fields inherited from class org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
parent
 
Constructor Summary
AbstractContainerDefinition()
           
 
Method Summary
 void addWidgetDefinition(WidgetDefinition definition)
          Adds a (sub) widget definition to this definition.
 void createWidget(Widget parent, String id)
          Create a widget from a contained widget definition.
 void createWidgets(Widget parent)
          Create widgets from the contained widget definitions.
 WidgetDefinition getWidgetDefinition(String id)
          Gets a (sub) widget definition from this definition.
 Collection getWidgetDefinitions()
          Gets the collection of (sub) widget definition from this definition.
 boolean hasWidget(String id)
          Check if this definition contains the named definition.
 void resolve(List parents, WidgetDefinition parent)
          Resolve references to widget definition classes
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
addValidator, generateDisplayData, generateDisplayData, generateLabel, getFormDefinition, getId, getLocation, getParent, setDisplayData, setId, setLocation, setParent, validate
 
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.woody.formmodel.WidgetDefinition
createInstance, generateDisplayData, generateDisplayData, generateLabel, getFormDefinition, getId, getLocation, setParent
 

Field Detail

definitions

protected ContainerDefinitionDelegate definitions
Constructor Detail

AbstractContainerDefinition

public AbstractContainerDefinition()
Method Detail

createWidget

public void createWidget(Widget parent,
                         String id)
Description copied from interface: ContainerDefinition
Create a widget from a contained widget definition.

Specified by:
createWidget in interface ContainerDefinition

createWidgets

public void createWidgets(Widget parent)
Description copied from interface: ContainerDefinition
Create widgets from the contained widget definitions.

Specified by:
createWidgets in interface ContainerDefinition

addWidgetDefinition

public void addWidgetDefinition(WidgetDefinition definition)
                         throws Exception,
                                DuplicateIdException
Description copied from interface: ContainerDefinition
Adds a (sub) widget definition to this definition.

Specified by:
addWidgetDefinition in interface ContainerDefinition
Throws:
Exception
DuplicateIdException

resolve

public void resolve(List parents,
                    WidgetDefinition parent)
             throws Exception
Description copied from interface: ContainerDefinition
Resolve references to widget definition classes

Specified by:
resolve in interface ContainerDefinition
Throws:
Exception

hasWidget

public boolean hasWidget(String id)
Description copied from interface: ContainerDefinition
Check if this definition contains the named definition.

Specified by:
hasWidget in interface ContainerDefinition

getWidgetDefinition

public WidgetDefinition getWidgetDefinition(String id)
Description copied from interface: ContainerDefinition
Gets a (sub) widget definition from this definition.

Specified by:
getWidgetDefinition in interface ContainerDefinition

getWidgetDefinitions

public Collection getWidgetDefinitions()
Description copied from interface: ContainerDefinition
Gets the collection of (sub) widget definition from this definition.

Specified by:
getWidgetDefinitions in interface ContainerDefinition


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