|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.forms.formmodel.AbstractWidget
org.apache.cocoon.forms.formmodel.AbstractContainerWidget
org.apache.cocoon.forms.formmodel.Repeater.RepeaterRow
| Field Summary |
| Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractContainerWidget |
validationError, widgets |
| Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractWidget |
wasValid |
| Fields inherited from interface org.apache.cocoon.forms.formmodel.Widget |
PATH_SEPARATOR |
| Constructor Summary | |
Repeater.RepeaterRow(RepeaterDefinition definition)
|
|
| Method Summary | |
void |
broadcastEvent(WidgetEvent event)
Broadcast an event previously queued by this widget to its event listeners. |
void |
generateDisplayData(ContentHandler contentHandler)
Delegates to the getDefinition() of this widget to generate a common
set of 'display' data. |
void |
generateLabel(ContentHandler contentHandler)
Generates SAX events for the label of this widget. |
WidgetDefinition |
getDefinition()
Get this widget's definition. |
Form |
getForm()
|
String |
getId()
Gets the id of this widget. |
String |
getRequestParameterName()
|
String |
getXMLElementName()
The XML element name used in AbstractWidget.generateSaxFragment(ContentHandler, Locale)
to produce the wrapping element for all the XML-instance-content of this Widget. |
void |
initialize()
Called after widget's environment has been setup, to allow for any contextual initalization such as looking up case widgets for union widgets. |
boolean |
validate()
Delegates the validate() down to the contained child-widgets,
and validates the extra rules on this containment level regardless of
children widget's validities. |
| Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractContainerWidget |
addChild, generateItemSaxFragment, getChild, getChildren, getSize, hasChild, readFromRequest |
| Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractWidget |
addValidator, generateSaxFragment, getAttribute, getCombinedState, getFullName, getLocation, getName, getParent, getState, getValue, getWidget, getXMLElementAttributes, isRequired, isValid, lookupWidget, removeAttribute, removeValidator, setAttribute, setParent, setState, setValue, toString, widgetNameChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.cocoon.forms.formmodel.Widget |
addValidator, generateSaxFragment, getAttribute, getCombinedState, getFullName, getLocation, getName, getParent, getState, getValue, getWidget, isRequired, isValid, lookupWidget, removeAttribute, removeValidator, setAttribute, setParent, setState, setValue |
| Constructor Detail |
public Repeater.RepeaterRow(RepeaterDefinition definition)
| Method Detail |
public WidgetDefinition getDefinition()
Widget
getDefinition in interface WidgetgetDefinition in class AbstractWidgetWidgetDefinition.createInstance())public String getId()
AbstractWidget
getId in interface WidgetgetId in class AbstractWidgetpublic String getRequestParameterName()
getRequestParameterName in interface WidgetgetRequestParameterName in class AbstractWidgetpublic Form getForm()
getForm in interface WidgetgetForm in class AbstractWidgetpublic void initialize()
AbstractContainerWidget
initialize in interface Widgetinitialize in class AbstractContainerWidgetpublic boolean validate()
AbstractContainerWidgetvalidate() down to the contained child-widgets,
and validates the extra rules on this containment level regardless of
children widget's validities.
When overriding one should call super.validate() as the first
statement to keep in sync with this behaviour.
validate in interface Widgetvalidate in class AbstractContainerWidgettrue only if all contained widgets are valid and the
extra validation rules on this containment level are ok.public String getXMLElementName()
AbstractWidgetAbstractWidget.generateSaxFragment(ContentHandler, Locale)
to produce the wrapping element for all the XML-instance-content of this Widget.
getXMLElementName in class AbstractWidget
public void generateLabel(ContentHandler contentHandler)
throws SAXException
Widget
generateLabel in interface WidgetgenerateLabel in class AbstractWidgetcontentHandler -
SAXException
public void generateDisplayData(ContentHandler contentHandler)
throws SAXException
AbstractWidgetAbstractWidget.getDefinition() of this widget to generate a common
set of 'display' data. (i.e. help, label, hint,...)
Subclasses should override if the getDefinition can return null
to avoid NPE's.
generateDisplayData in class AbstractWidgetcontentHandler - where to send the SAX events to.
SAXExceptionWidgetDefinition.generateDisplayData(ContentHandler)public void broadcastEvent(WidgetEvent event)
Widget
broadcastEvent in interface WidgetbroadcastEvent in class AbstractWidget
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||