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(is.codion.common.state.StateObserver enabled) mnemonic(char mnemonic) Methods inherited from interface is.codion.swing.common.ui.control.Control.Builder
largeIcon
-
Method Details
-
name
- Specified by:
namein interfaceControl.Builder- Parameters:
name- the name of the control- Returns:
- this Builder instance
-
enabled
- Specified by:
enabledin interfaceControl.Builder- Parameters:
enabled- the state observer which controls the enabled state of the control- Returns:
- this Builder instance
-
mnemonic
- Specified by:
mnemonicin interfaceControl.Builder- Parameters:
mnemonic- the control mnemonic- Returns:
- this Builder instance
-
smallIcon
- Specified by:
smallIconin interfaceControl.Builder- Parameters:
smallIcon- the small control icon- Returns:
- this Builder instance
-
description
- Specified by:
descriptionin interfaceControl.Builder- Parameters:
description- a string describing the control- Returns:
- this Builder instance
-
keyStroke
- Specified by:
keyStrokein interfaceControl.Builder- Parameters:
keyStroke- the keystroke to associate with the control- Returns:
- this Builder instance
-
build
ToggleControl build()- Specified by:
buildin interfaceControl.Builder- Returns:
- a new ToggleControl
-