org.apache.cocoon.woody.formmodel
Interface ContainerDefinition

All Superinterfaces:
WidgetDefinition
All Known Implementing Classes:
AbstractContainerDefinition, ClassDefinition, FormDefinition, 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 $
Author:
Timothy Larson

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.woody.formmodel.WidgetDefinition
createInstance, generateDisplayData, generateDisplayData, generateLabel, getFormDefinition, getId, getLocation, setParent
 

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.