Module is.codion.swing.common.ui
Interface ToggleControl.Builder
- All Superinterfaces:
Control.Builder
- Enclosing interface:
- ToggleControl
A builder for ToggleControl
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) enabled
(StateObserver enabled) mnemonic
(char mnemonic) Methods 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 of the control- Returns:
- this Builder instance
-
enabled
- Specified by:
enabled
in interfaceControl.Builder
- Parameters:
enabled
- the state observer which controls the enabled state of the control- Returns:
- this Builder instance
-
mnemonic
- Specified by:
mnemonic
in interfaceControl.Builder
- Parameters:
mnemonic
- the control mnemonic- Returns:
- this Builder instance
-
smallIcon
- Specified by:
smallIcon
in interfaceControl.Builder
- Parameters:
smallIcon
- the small control icon- Returns:
- this Builder instance
-
description
- Specified by:
description
in interfaceControl.Builder
- Parameters:
description
- a string describing the control- Returns:
- this Builder instance
-
keyStroke
- Specified by:
keyStroke
in interfaceControl.Builder
- Parameters:
keyStroke
- the keystroke to associate with the control- Returns:
- this Builder instance
-
build
ToggleControl build()- Specified by:
build
in interfaceControl.Builder
- Returns:
- a new ToggleControl
-