|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.forms.formmodel.AbstractWidget org.apache.cocoon.forms.formmodel.AbstractContainerWidget org.apache.cocoon.forms.formmodel.Repeater.RepeaterRow
public class 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 AbstractWidget.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()
Concrete subclasses should allow access to their underlaying Definition through this method. |
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()
AbstractWidget
null
they should also organize
own implementations of AbstractWidget.getId()
, AbstractWidget.getLocation()
,
AbstractWidget.validate()
, AbstractWidget.generateLabel(ContentHandler)
and
AbstractWidget.generateDisplayData(ContentHandler)
to avoid NPE's.
getDefinition
in interface Widget
getDefinition
in class AbstractWidget
WidgetDefinition.createInstance()
)public String getId()
AbstractWidget
getId
in interface Widget
getId
in class AbstractWidget
null
Top-level container widgets (like 'form') should return ""
public String getRequestParameterName()
getRequestParameterName
in interface Widget
getRequestParameterName
in class AbstractWidget
public Form getForm()
getForm
in interface Widget
getForm
in class AbstractWidget
public void initialize()
AbstractContainerWidget
initialize
in interface Widget
initialize
in class AbstractContainerWidget
public boolean validate()
AbstractContainerWidget
validate()
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 Widget
validate
in class AbstractContainerWidget
true
only if all contained widgets are valid and the
extra validation rules on this containment level are ok.Widget.validate()
public String getXMLElementName()
AbstractWidget
AbstractWidget.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
AbstractWidget
AbstractWidget.getDefinition()
to generate the 'label' part of
the display-data of this widget.
Subclasses should override if the getDefinition can return null
to avoid NPE's
generateLabel
in interface Widget
generateLabel
in class AbstractWidget
SAXException
public void generateDisplayData(ContentHandler contentHandler) throws SAXException
AbstractWidget
AbstractWidget.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 AbstractWidget
contentHandler
- where to send the SAX events to.
SAXException
WidgetDefinition.generateDisplayData(ContentHandler)
public void broadcastEvent(WidgetEvent event)
AbstractWidget
UnsupportedOperationException
.
Concrete subclass widgets need to override when supporting event broadcasting.
broadcastEvent
in interface Widget
broadcastEvent
in class AbstractWidget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |