|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.forms.formmodel.WidgetList
public class WidgetList
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.
Constructor Summary | |
---|---|
WidgetList()
Constructs ContainerDelegate to store and jointly manage a list of contained widgets. |
Method Summary | |
---|---|
void |
addWidget(Widget widget)
Adds a widget to the list of contained Widget 's |
void |
generateSaxFragment(ContentHandler contentHandler,
Locale locale)
Generates the SAXfragments of the contained widgets |
Widget |
getWidget(String id)
Looks for a widget in this list by using the provided id as a lookup key. |
List |
getWidgetList()
Get the (unmodifiable) list of widgets |
Map |
getWidgetMap()
Get the (unmodifiable) map of widgets |
boolean |
hasWidget(String id)
Checks if a widget with the provided id is contained in the list. |
Iterator |
iterator()
|
void |
readFromRequest(FormContext formContext)
Performs the Widget.readFromRequest(FormContext) on all the
contained widgets. |
boolean |
validate()
Validates all contained widgets and returns the combined result. |
boolean |
widgetsHaveValues()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WidgetList()
Method Detail |
---|
public List getWidgetList()
public Map getWidgetMap()
public void addWidget(Widget widget)
Widget
's
widget
- public void readFromRequest(FormContext formContext)
Widget.readFromRequest(FormContext)
on all the
contained widgets.
formContext
- to pass to the Widget.readFromRequest(FormContext)
Widget.readFromRequest(FormContext)
public boolean validate()
false
if at least one of the contained widgets is not valid.Widget.validate()
public boolean hasWidget(String id)
id
- of the widget to look for.
public Widget getWidget(String id)
id
- of the widget to look for
null
if it could not be found.public Iterator iterator()
Widget
'spublic boolean widgetsHaveValues()
false
if at least one of the contained widgets has no value.public void generateSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException
contentHandler
- locale
-
SAXException
Widget.generateSaxFragment(ContentHandler, Locale)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |