Class ActionGroupBuilderImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.builder.ActionGroupBuilderImpl
- All Implemented Interfaces:
ActionGroupBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd an existing actionadd an actionaddActionGroup
(ActionGroup childActionGroup) add an existing action groupaddActionGroup
(String id, String label, @Nullable String position) add an action groupadd a reportadd a reportget()
Returns the underlying action group.setDefaultAction
(Action action) Sets the default action on the action group.set the default actionSets the icon on the action group.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.builder.ActionGroupBuilder
addAction, addActionGroup, addReport
-
Constructor Details
-
ActionGroupBuilderImpl
-
-
Method Details
-
addAction
Description copied from interface:ActionGroupBuilder
add an action- Specified by:
addAction
in interfaceActionGroupBuilder
- Parameters:
id
- id of the actionposition
- relative position of the action- Returns:
- the builder of the newly created action
-
addAction
Description copied from interface:ActionGroupBuilder
add an existing action- Specified by:
addAction
in interfaceActionGroupBuilder
- Parameters:
action
- the action to be added- Returns:
- the builder of the newly added action
-
setDefaultAction
Description copied from interface:ActionGroupBuilder
set the default action- Specified by:
setDefaultAction
in interfaceActionGroupBuilder
- Parameters:
id
- id of the action- Returns:
- the builder of the newly created action
-
addReport
Description copied from interface:ActionGroupBuilder
add a report- Specified by:
addReport
in interfaceActionGroupBuilder
- Parameters:
id
- id of the reportposition
- relative position of the report- Returns:
- the builder of the newly created report
-
addReport
Description copied from interface:ActionGroupBuilder
add a report- Specified by:
addReport
in interfaceActionGroupBuilder
- Returns:
- the builder of the newly created report
-
addActionGroup
public ActionGroupBuilder addActionGroup(String id, String label, @Nullable @Nullable String position) Description copied from interface:ActionGroupBuilder
add an action group- Specified by:
addActionGroup
in interfaceActionGroupBuilder
- Parameters:
id
- id of the action grouplabel
- label of the action groupposition
- relative position of the action group- Returns:
- the builder of the newly created action group
-
addActionGroup
Description copied from interface:ActionGroupBuilder
add an existing action group- Specified by:
addActionGroup
in interfaceActionGroupBuilder
- Parameters:
childActionGroup
- actionGroup to be added- Returns:
- the builder of the newly added action group
-
setDefaultAction
Description copied from interface:ActionGroupBuilder
Sets the default action on the action group.- Specified by:
setDefaultAction
in interfaceActionGroupBuilder
- Parameters:
action
- the default action.- Returns:
- the current builder (allows chaining)
-
setIcon
Description copied from interface:ActionGroupBuilder
Sets the icon on the action group.- Specified by:
setIcon
in interfaceActionGroupBuilder
- Parameters:
icon
- icon of the action group.- Returns:
- the current builder (allows chaining)
-
get
Description copied from interface:ActionGroupBuilder
Returns the underlying action group.- Specified by:
get
in interfaceActionGroupBuilder
- Returns:
- the action group.
- Throws:
ModelBuildException
- if the validation fails
-