Interface ActionGroupBuilder
- All Known Implementing Classes:
ActionGroupBuilderImpl
public interface ActionGroupBuilder
can be used to build
ActionGroup
-
Method Summary
Modifier and TypeMethodDescriptionadd an existing actiondefault ActionBuilder
add an action with default positionadd an actionaddActionGroup
(ActionGroup childActionGroup) add an existing action groupdefault ActionGroupBuilder
addActionGroup
(String id, String label) add a action group with default positionaddActionGroup
(String id, String label, @Nullable String position) add an action groupadd a reportdefault ReportBuilder
add a report with default positionadd 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.
-
Method Details
-
addAction
add an action with default position- Parameters:
id
- id of the action- Returns:
- the builder of the newly created action
-
addAction
add an action- Parameters:
id
- id of the actionposition
- relative position of the action- Returns:
- the builder of the newly created action
-
addAction
add an existing action- Parameters:
action
- the action to be added- Returns:
- the builder of the newly added action
-
setDefaultAction
set the default action- Parameters:
id
- id of the action- Returns:
- the builder of the newly created action
-
addReport
add a report with default position- Parameters:
id
- id of the report- Returns:
- the builder of the newly created action
-
addReport
add a report- Parameters:
id
- id of the reportposition
- relative position of the report- Returns:
- the builder of the newly created report
-
addReport
add a report- Returns:
- the builder of the newly created report
-
addActionGroup
add a action group with default position- Parameters:
id
- id of the action grouplabel
- label of the action group- Returns:
- the builder of the newly created action group
-
addActionGroup
add an action group- 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
add an existing action group- Parameters:
childActionGroup
- actionGroup to be added- Returns:
- the builder of the newly added action group
-
setDefaultAction
Sets the default action on the action group.- Parameters:
action
- the default action.- Returns:
- the current builder (allows chaining)
-
setIcon
Sets the icon on the action group.- Parameters:
icon
- icon of the action group.- Returns:
- the current builder (allows chaining)
-
get
Returns the underlying action group.- Returns:
- the action group.
- Throws:
ModelBuildException
- if the validation fails
-