Module is.codion.swing.common.ui
Interface ControlsBuilder
- All Superinterfaces:
ControlBuilder<Controls,
,ControlsBuilder> Supplier<Controls>
A builder for Controls
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<Action> actions) controls
(Collection<? extends Control> controls) Removes all actions from this controls builder instanceAdds a separator to the ControlsseparatorAt
(int index) Adds a separator to the ControlsMethods inherited from interface is.codion.swing.common.ui.control.ControlBuilder
background, build, caption, description, enabled, font, foreground, get, keyStroke, largeIcon, mnemonic, smallIcon, value
-
Method Details
-
control
- Parameters:
control
- the control to add to this controls instance- Returns:
- this Builder instance
-
control
- Parameters:
control
- the control to add to this controls instance- Returns:
- this Builder instance
-
controlAt
- Parameters:
index
- the index at which to add the controlcontrol
- the control to add to this controls instance- Returns:
- this Builder instance
-
controlAt
- Parameters:
index
- the index at which to add the controlcontrol
- the control to add to this controls instance- Returns:
- this Builder instance
-
controls
- Parameters:
controls
- the controls to add- Returns:
- this Builder instance
-
controls
- Parameters:
controls
- the controls to add- Returns:
- this Builder instance
-
controls
- Parameters:
controls
- the controls to add- Returns:
- this Builder instance
-
action
- Parameters:
action
- the Action to add to this controls instance- Returns:
- this Builder instance
-
actionAt
- Parameters:
index
- the index at which to add the actionaction
- the Action to add to this controls instance- Returns:
- this Builder instance
-
actions
- Parameters:
actions
- the Actions to add to this controls instance- Returns:
- this Builder instance
-
actions
- Parameters:
actions
- the Actions to add to this controls instance- Returns:
- this Builder instance
-
separator
ControlsBuilder separator()Adds a separator to the Controls- Returns:
- this Builder instance
-
separatorAt
Adds a separator to the Controls- Parameters:
index
- the index at which to insert the separator- Returns:
- this Builder instance
-
remove
- Parameters:
action
- the action to remove- Returns:
- this Builder instance
-
removeAll
ControlsBuilder removeAll()Removes all actions from this controls builder instance- Returns:
- this Builder instance
-