org.apache.cocoon.forms.formmodel
Interface ContainerDefinition

All Superinterfaces:
Locatable, WidgetDefinition
All Known Implementing Classes:
AbstractContainerDefinition, ClassDefinition, FormDefinition, GroupDefinition, RepeaterDefinition, StructDefinition, UnionDefinition

public interface ContainerDefinition
extends WidgetDefinition

Interface to be implemented by WidgetDefinitions for Widgets which contain other widgets.

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

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 interface org.apache.cocoon.forms.formmodel.WidgetDefinition
checkCompleteness, createInstance, generateDisplayData, generateDisplayData, generateLabel, getAttribute, getEnclosingLibrary, getFormDefinition, getId, getLocation, initializeFrom, setEnclosingLibrary, setParent, validate
 

Method Detail

resolve

void resolve(List parents,
             WidgetDefinition parent)
             throws Exception
Resolve references to widget definition classes

Throws:
Exception

createWidget

void createWidget(Widget parent,
                  String id)
Create a widget from a contained widget definition.


createWidgets

void createWidgets(Widget parent)
Create widgets from the contained widget definitions.


addWidgetDefinition

void addWidgetDefinition(WidgetDefinition definition)
                         throws Exception,
                                DuplicateIdException
Adds a (sub) widget definition to this definition.

Throws:
Exception
DuplicateIdException

hasWidget

boolean hasWidget(String id)
Check if this definition contains the named definition.


getWidgetDefinition

WidgetDefinition getWidgetDefinition(String id)
Gets a (sub) widget definition from this definition.


getWidgetDefinitions

Collection getWidgetDefinitions()
Gets the collection of (sub) widget definition from this definition.



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