org.apache.cocoon.woody.formmodel
Interface ContainerWidget

All Superinterfaces:
Widget
All Known Implementing Classes:
AbstractContainerWidget, Form, Repeater, Repeater.RepeaterRow, Struct, Union

public interface ContainerWidget
extends Widget

Interface to be implemented by Widgets which contain other widgets.

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

Method Summary
 void addWidget(Widget widget)
          Adds a child widget.
 Iterator getChildren()
          Returns an iterator over the widgets this object contains
 Widget getWidget(String id)
          Gets the child widget with the given id.
 boolean hasWidget(String id)
          Checks if there is a child widget with the given id.
 
Methods inherited from interface org.apache.cocoon.woody.formmodel.Widget
broadcastEvent, generateLabel, generateSaxFragment, getForm, getFullyQualifiedId, getId, getLocation, getNamespace, getParent, getValue, isRequired, readFromRequest, setParent, setValue, validate
 

Method Detail

addWidget

void addWidget(Widget widget)
Adds a child widget.


hasWidget

boolean hasWidget(String id)
Checks if there is a child widget with the given id.


getWidget

Widget getWidget(String id)
Gets the child widget with the given id. Returns null if there is no child with the given id.

Specified by:
getWidget in interface Widget

getChildren

Iterator getChildren()
Returns an iterator over the widgets this object contains



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