Module is.codion.swing.common.ui
Interface ControlId<T extends Control>
- Type Parameters:
T- the control type
public interface ControlId<T extends Control>
Identifies a
Control instance-
Method Summary
Modifier and TypeMethodDescriptionstatic ControlId<CommandControl>static ControlId<CommandControl>commandControl(KeyStroke defaultKeyStroke) controls()static ControlId<ToggleControl>static ControlId<ToggleControl>toggleControl(KeyStroke defaultKeyStroke)
-
Method Details
-
controlClass
- Returns:
- the class of the control identified by this identifier
-
defaultKeystroke
- Returns:
- the default keystroke for this shortcut, an empty Optional if none is available
-
commandControl
- Returns:
- a new
ControlIdfor identifying aCommandControlinstance
-
commandControl
- Parameters:
defaultKeyStroke- the default keystroke- Returns:
- a new
ControlIdfor identifying aCommandControlinstance
-
toggleControl
- Returns:
- a new
ControlIdfor identifying aCommandControlinstance
-
toggleControl
- Parameters:
defaultKeyStroke- the default keystroke- Returns:
- a new
ControlIdfor identifying aCommandControlinstance
-
controls
-
controls
-