Module is.codion.swing.common.ui
Interface Controls.ControlsBuilder
- All Superinterfaces:
Control.Builder<Controls,
Controls.ControlsBuilder>
- Enclosing interface:
- Controls
public static interface Controls.ControlsBuilder
extends Control.Builder<Controls,Controls.ControlsBuilder>
A builder for Controls
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<Action> actions) control
(Control.Builder<?, ?> controlBuilder) controlAt
(int index, Control.Builder<?, ?> controlBuilder) controls
(Control.Builder<?, ?>... controlBuilders) 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.Control.Builder
background, build, description, enabled, font, foreground, keyStroke, largeIcon, mnemonic, name, smallIcon, value
-
Method Details
-
control
- Parameters:
control
- the control to add to this controls instance- Returns:
- this Builder instance
-
control
- Parameters:
controlBuilder
- the control builder 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 controlcontrolBuilder
- the control builder 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:
controlBuilders
- the control builder 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
Controls.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
Controls.ControlsBuilder removeAll()Removes all actions from this controls builder instance- Returns:
- this Builder instance
-