org.apache.cocoon.forms.formmodel
Class RepeaterActionDefinitionBuilder
java.lang.Object
org.apache.cocoon.forms.formmodel.AbstractWidgetDefinitionBuilder
org.apache.cocoon.forms.formmodel.RepeaterActionDefinitionBuilder
- All Implemented Interfaces:
- Disposable, Serviceable, WidgetDefinitionBuilder
public class RepeaterActionDefinitionBuilder
- extends AbstractWidgetDefinitionBuilder
Builds a <fd:repeater-action/>
Three actions are defined:
-
<fd:repeater-action id="add" command="add-row"
repeater="repeater-id"/>
: when activated, adds a row to the
sibling repeater named "repeater-id".
-
<fd:repeater-action id="rm" command="delete-rows"
repeater="repeater-id" select="select-id"/>
: removes the
selected rows from the sibling repeater named "repeater-id". The
selected rows are identified by the boolean field "select-id" present
in each row.
-
<fd:repeater-action id="insert" command="insert-rows"
repeater="repeater-id" select="select-id"/>
: inserts rows before
the selected rows from the sibling repeater named "repeater-id". The
selected rows are identified by the boolean field "select-id" present
in each row.
- Version:
- $Id: RepeaterActionDefinitionBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepeaterActionDefinitionBuilder
public RepeaterActionDefinitionBuilder()
buildWidgetDefinition
public WidgetDefinition buildWidgetDefinition(Element widgetElement,
WidgetDefinitionBuilderContext context)
throws Exception
- Throws:
Exception
createDefinition
protected RepeaterActionDefinition createDefinition(Element element,
String actionCommand)
throws Exception
- Throws:
Exception
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.