- All Superinterfaces:
Action
,ActionListener
,Control
,EventListener
A
Control
based on a Control.Command
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.swing.common.ui.control.Control
Control.ActionCommand, Control.Builder<C extends Control,
B extends Control.Builder<C, B>>, Control.BuilderFactory, Control.Command -
Field Summary
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a newCommandControl.CommandControlBuilder
instance, based on a copy of this control.copy
(Control.ActionCommand actionCommand) Returns a newCommandControl.CommandControlBuilder
instance, based on a copy of this control, using the given command.copy
(Control.Command command) Returns a newCommandControl.CommandControlBuilder
instance, based on a copy of this control, using the given command.static ControlKey<CommandControl>
static ControlKey<CommandControl>
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
Methods inherited from interface is.codion.swing.common.ui.control.Control
background, description, enabled, font, foreground, keys, keyStroke, largeIcon, mnemonic, name, setEnabled, smallIcon
-
Method Details
-
copy
Returns a newCommandControl.CommandControlBuilder
instance, based on a copy of this control. -
copy
Returns a newCommandControl.CommandControlBuilder
instance, based on a copy of this control, using the given command.- Parameters:
command
- the command for the resulting control- Returns:
- a new builder
-
copy
Returns a newCommandControl.CommandControlBuilder
instance, based on a copy of this control, using the given command.- Parameters:
actionCommand
- the command for the resulting control- Returns:
- a new builder
-
key
- Parameters:
name
- the control name- Returns:
- a new
ControlKey
for identifying aCommandControl
instance
-
key
- Parameters:
name
- the control namedefaultKeyStroke
- the default keystroke- Returns:
- a new
ControlKey
for identifying aCommandControl
instance
-