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
(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:
name
in interfaceControl.Builder
- Parameters:
name
- the name for this controls instance- Returns:
- this Builder instance
-
description
- Specified by:
description
in interfaceControl.Builder
- Parameters:
description
- a description for this controls instance- Returns:
- this Builder instance
-
mnemonic
- Specified by:
mnemonic
in interfaceControl.Builder
- Parameters:
mnenomic
- the mnemonic to assign to this controls instance- Returns:
- this Builder instance
-
keyStroke
- Specified by:
keyStroke
in interfaceControl.Builder
- Parameters:
keyStroke
- the keystroke to associate with this controls instance- Returns:
- this Builder instance
-
enabled
- Specified by:
enabled
in interfaceControl.Builder
- Parameters:
enabled
- the state observer dictating the enabled state of this controls instance- Returns:
- this Builder instance
-
smallIcon
- Specified by:
smallIcon
in 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:
build
in interfaceControl.Builder
- Returns:
- a new Controls instance
-