| |
|
| java.lang.Object org.apache.cocoon.forms.formmodel.WidgetList
WidgetList | public class WidgetList (Code) | | Helper class for the implementation of widgets containing other widgets.
This implements a type-aware List of Widgets that automatically can distribute
the common Widget operations over the contained Widgets.
version: $Id: WidgetList.java 449149 2006-09-23 03:58:05Z crossley $ |
Constructor Summary | |
public | WidgetList() Constructs ContainerDelegate to store and jointly manage a list of
contained widgets. |
WidgetList | public WidgetList()(Code) | | Constructs ContainerDelegate to store and jointly manage a list of
contained widgets.
|
addWidget | public void addWidget(Widget widget)(Code) | | Adds a widget to the list of contained
Widget 's
Parameters: widget - |
getWidget | public Widget getWidget(String id)(Code) | | Looks for a widget in this list by using the provided id as a lookup key.
Parameters: id - of the widget to look for the found widget or null if it could not be found. |
getWidgetList | public List getWidgetList()(Code) | | Get the (unmodifiable) list of widgets
the widget list |
getWidgetMap | public Map getWidgetMap()(Code) | | Get the (unmodifiable) map of widgets
the widget map |
hasWidget | public boolean hasWidget(String id)(Code) | | Checks if a widget with the provided id is contained in the list.
Parameters: id - of the widget to look for. true if the widget was found |
validate | public boolean validate()(Code) | | Validates all contained widgets and returns the combined result.
false if at least one of the contained widgets is not valid. See Also: Widget.validate |
widgetsHaveValues | public boolean widgetsHaveValues()(Code) | | false if at least one of the contained widgets has no value. |
|
|
|