Class ActionGroupBuilderImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.builder.ActionGroupBuilderImpl
- All Implemented Interfaces:
ActionGroupBuilder
-
Constructor Summary
Constructors -
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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ActionGroupBuilder
addAction, addActionGroup, addReport
-
Constructor Details
-
ActionGroupBuilderImpl
-
-
Method Details
-
addAction
Description copied from interface:ActionGroupBuilderadd an action- Specified by:
addActionin 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:ActionGroupBuilderadd an existing action- Specified by:
addActionin interfaceActionGroupBuilder- Parameters:
action- the action to be added- Returns:
- the builder of the newly added action
-
setDefaultAction
Description copied from interface:ActionGroupBuilderset the default action- Specified by:
setDefaultActionin interfaceActionGroupBuilder- Parameters:
id- id of the action- Returns:
- the builder of the newly created action
-
addReport
Description copied from interface:ActionGroupBuilderadd a report- Specified by:
addReportin 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:ActionGroupBuilderadd a report- Specified by:
addReportin 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:ActionGroupBuilderadd an action group- Specified by:
addActionGroupin 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:ActionGroupBuilderadd an existing action group- Specified by:
addActionGroupin interfaceActionGroupBuilder- Parameters:
childActionGroup- actionGroup to be added- Returns:
- the builder of the newly added action group
-
setDefaultAction
Description copied from interface:ActionGroupBuilderSets the default action on the action group.- Specified by:
setDefaultActionin interfaceActionGroupBuilder- Parameters:
action- the default action.- Returns:
- the current builder (allows chaining)
-
setIcon
Description copied from interface:ActionGroupBuilderSets the icon on the action group.- Specified by:
setIconin interfaceActionGroupBuilder- Parameters:
icon- icon of the action group.- Returns:
- the current builder (allows chaining)
-
get
Description copied from interface:ActionGroupBuilderReturns the underlying action group.- Specified by:
getin interfaceActionGroupBuilder- Returns:
- the action group.
- Throws:
ModelBuildException- if the validation fails
-