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
ControlId
for identifying aCommandControl
instance
-
commandControl
- Parameters:
defaultKeyStroke
- the default keystroke- Returns:
- a new
ControlId
for identifying aCommandControl
instance
-
toggleControl
- Returns:
- a new
ControlId
for identifying aCommandControl
instance
-
toggleControl
- Parameters:
defaultKeyStroke
- the default keystroke- Returns:
- a new
ControlId
for identifying aCommandControl
instance
-
controls
-
controls
-