|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.woody.formmodel.AbstractWidget
org.apache.cocoon.woody.formmodel.AbstractContainerWidget
public abstract class AbstractContainerWidget
A general-purpose abstract Widget which can hold zero or more widgets.
| Field Summary | |
|---|---|
protected ContainerDelegate |
widgets
|
| Fields inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget |
|---|
definition |
| Constructor Summary | |
|---|---|
AbstractContainerWidget(AbstractWidgetDefinition definition)
|
|
| Method Summary | |
|---|---|
void |
addWidget(Widget widget)
Adds a child widget. |
void |
generateSaxFragment(ContentHandler contentHandler,
Locale locale,
String element)
|
Iterator |
getChildren()
Returns an iterator over the widgets this object contains |
Widget |
getWidget(String id)
Gets the child widget of this widget with the given id, or null if there isn't such a child. |
boolean |
hasWidget(String id)
Checks if there is a child widget with the given id. |
void |
readFromRequest(FormContext formContext)
Lets this widget read its data from a request. |
boolean |
validate(FormContext formContext)
Validates this widget and returns the outcome. |
| Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget |
|---|
addValidator, broadcastEvent, generateItemSaxFragment, generateLabel, generateSaxFragment, getForm, getFullyQualifiedId, getId, getLocation, getNamespace, getParent, getValue, isRequired, removeValidator, setDefinition, setLocation, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cocoon.woody.formmodel.Widget |
|---|
broadcastEvent, generateLabel, generateSaxFragment, getForm, getFullyQualifiedId, getId, getLocation, getNamespace, getParent, getValue, isRequired, setParent, setValue |
| Field Detail |
|---|
protected ContainerDelegate widgets
| Constructor Detail |
|---|
public AbstractContainerWidget(AbstractWidgetDefinition definition)
| Method Detail |
|---|
public void addWidget(Widget widget)
ContainerWidget
addWidget in interface ContainerWidgetpublic boolean hasWidget(String id)
ContainerWidget
hasWidget in interface ContainerWidgetpublic Widget getWidget(String id)
Widget
getWidget in interface ContainerWidgetgetWidget in interface WidgetgetWidget in class AbstractWidgetpublic Iterator getChildren()
ContainerWidget
getChildren in interface ContainerWidgetpublic void readFromRequest(FormContext formContext)
Widget
readFromRequest in interface Widgetpublic boolean validate(FormContext formContext)
WidgetWidget.generateSaxFragment(ContentHandler, Locale) method.
validate in interface Widgetvalidate in class AbstractWidget
public void generateSaxFragment(ContentHandler contentHandler,
Locale locale,
String element)
throws SAXException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||