- All Superinterfaces:
Action
,ActionListener
,Control
,EventListener
A collection of controls and separators, note that these can be nested controls.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A builder for Controlsstatic interface
AControlKey
forControls
instancesstatic interface
Specifies a layout for aControls
instance.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
FieldsModifier and TypeFieldDescriptionstatic final Action
A placeholder representing a separator in aControls
instance.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 TypeMethodDescriptionactions()
static Controls.ControlsBuilder
builder()
static Controls
Constructs a new Controls instance.static Controls
Constructs a new Controls instance.copy()
Returns a newControl.Builder
instance, based on a copy of this control.static Controls.ControlsKey
static Controls.ControlsKey
key
(String name, Controls.Layout defaultLayout) static Controls.Layout
layout
(List<ControlKey<?>> defaults) int
size()
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
-
Field Details
-
SEPARATOR
A placeholder representing a separator in aControls
instance. All methods throwUnsupportedOperationException
.
-
-
Method Details
-
actions
- Returns:
- an unmodifiable view of the actions in this
Controls
instance, including separators
-
size
int size()- Returns:
- the number of actions in this
Controls
instance, ignoring separators
-
copy
Controls.ControlsBuilder copy()Description copied from interface:Control
Returns a newControl.Builder
instance, based on a copy of this control. -
controls
Constructs a new Controls instance.- Parameters:
actions
- the actions- Returns:
- a new Controls instance.
-
controls
Constructs a new Controls instance.- Parameters:
controls
- the controls- Returns:
- a new Controls instance.
-
builder
- Returns:
- a new
Controls.ControlsBuilder
instance
-
layout
- Parameters:
defaults
- the default controls layout- Returns:
- a new Config instance
-
key
- Parameters:
name
- the controls name- Returns:
- a new
ControlKey
for identifying aControls
instance
-
key
- Parameters:
name
- the controls namedefaultLayout
- the default controls layout- Returns:
- a new
Controls.ControlsKey
for identifying aControls
instance
-