Module is.codion.swing.common.ui
Interface Controls.Builder
- All Superinterfaces:
Control.Builder
- Enclosing interface:
- Controls
A builder for Controls
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the Controlscontrol(Control.Builder controlBuilder) controls(Control.Builder... controlBuilders) description(String description) enabled(is.codion.common.state.StateObserver enabled) mnemonic(char mnenomic) Adds a separator to the ControlsMethods inherited from interface is.codion.swing.common.ui.control.Control.Builder
largeIcon
-
Method Details
-
name
- Specified by:
namein interfaceControl.Builder- Parameters:
name- the name for this controls instance- Returns:
- this Builder instance
-
description
- Specified by:
descriptionin interfaceControl.Builder- Parameters:
description- a description for this controls instance- Returns:
- this Builder instance
-
mnemonic
- Specified by:
mnemonicin interfaceControl.Builder- Parameters:
mnenomic- the mnemonic to assign to this controls instance- Returns:
- this Builder instance
-
keyStroke
- Specified by:
keyStrokein interfaceControl.Builder- Parameters:
keyStroke- the keystroke to associate with this controls instance- Returns:
- this Builder instance
-
enabled
- Specified by:
enabledin interfaceControl.Builder- Parameters:
enabled- the state observer dictating the enabled state of this controls instance- Returns:
- this Builder instance
-
smallIcon
- Specified by:
smallIconin interfaceControl.Builder- Parameters:
smallIcon- the icon- Returns:
- this Builder instance
-
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
-
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
-
actions
- Parameters:
actions- the Actions to add to this controls instance- Returns:
- this Builder instance
-
separator
Controls.Builder separator()Adds a separator to the Controls- Returns:
- this Builder instance
-
build
Controls build()Builds the Controls- Specified by:
buildin interfaceControl.Builder- Returns:
- a new Controls instance
-