|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition org.apache.cocoon.forms.formmodel.ActionDefinition org.apache.cocoon.forms.formmodel.RepeaterActionDefinition
public abstract class RepeaterActionDefinition
Abstract repeater action. Subclasses will typically just self-add an event handler that will act on the repeater.
RepeaterActionDefinitionBuilder
Nested Class Summary | |
---|---|
static class |
RepeaterActionDefinition.AddRowActionDefinition
The definition of a repeater action that adds a row to a sibling repeater. |
static class |
RepeaterActionDefinition.ChangePageActionDefinition
|
static class |
RepeaterActionDefinition.DeleteRowsActionDefinition
The definition of a repeater action that deletes the selected rows of a sibling repeater. |
static class |
RepeaterActionDefinition.InsertRowsActionDefinition
The definition of a repeater action that insert rows before the selected rows in a sibling repeater, or at the end of the repeater if no row is selected. |
static class |
RepeaterActionDefinition.SortActionDefinition
|
Field Summary |
---|
Fields inherited from class org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition |
---|
createListener, enclosingLibrary, parent |
Constructor Summary | |
---|---|
RepeaterActionDefinition()
Builds an action whose target repeater is the parent of this widget |
|
RepeaterActionDefinition(String repeaterName)
Builds an action whose target is a sibling of this widget |
Method Summary | |
---|---|
Widget |
createInstance()
Creates and returns a widget based on this widget definition. |
String |
getRepeaterName()
Get the name of the repeater on which to act. |
void |
initializeFrom(WidgetDefinition definition)
initialize this definition with the other, sort of like a copy constructor |
Methods inherited from class org.apache.cocoon.forms.formmodel.ActionDefinition |
---|
addActionListener, fireActionEvent, getActionCommand, hasActionListeners, setActionCommand |
Methods inherited from class org.apache.cocoon.forms.formmodel.AbstractWidgetDefinition |
---|
addCreateListener, addValidator, checkCompleteness, checkMutable, fireCreateEvent, generateDisplayData, generateDisplayData, generateLabel, getAttribute, getEnclosingLibrary, getFormDefinition, getId, getLocation, getParent, getState, makeImmutable, setAttributes, setDisplayData, setEnclosingLibrary, setId, setLocation, setParent, setState, validate, widgetCreated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepeaterActionDefinition()
public RepeaterActionDefinition(String repeaterName)
repeaterName
- the name of the repeaterMethod Detail |
---|
public void initializeFrom(WidgetDefinition definition) throws Exception
initializeFrom
in interface WidgetDefinition
initializeFrom
in class ActionDefinition
Exception
public Widget createInstance()
WidgetDefinition
createInstance
in interface WidgetDefinition
createInstance
in class ActionDefinition
public String getRepeaterName()
null
, the repeater
is the parent of the current widget (i.e. actions are in repeater rows). Otherwise,
the repeater is a sibling of the current widget.
null
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |