Interface Controls
- 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 interfaceAControlKeyforControlsinstances.static interfaceSpecifies a layout for aControlsinstance.Nested classes/interfaces inherited from interface Control
Control.ActionCommand, Control.BuilderFactory, Control.Command -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActionA placeholder representing a separator in aControlsinstance.Fields inherited from interface 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 ControlsBuilderbuilder()static ControlsConstructs a new Controls instance.static ControlsConstructs a new Controls instance.copy()Returns a newControlBuilderinstance, based on a copy of this control.static Controls.ControlsKeystatic Controls.ControlsKeykey(String name, @Nullable Controls.Layout defaultLayout) static Controls.Layoutlayout(List<ControlKey<?>> defaults) intsize()Methods inherited from interface Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListenerMethods inherited from interface ActionListener
actionPerformedMethods inherited from interface Control
background, caption, description, enabled, font, foreground, keys, keyStroke, largeIcon, mnemonic, setEnabled, smallIcon
-
Field Details
-
SEPARATOR
A placeholder representing a separator in aControlsinstance. All methods throwUnsupportedOperationException.
-
-
Method Details
-
actions
-
size
int size()- Returns:
- the number of actions in this
Controlsinstance, ignoring separators
-
copy
ControlsBuilder copy()Description copied from interface:ControlReturns a newControlBuilderinstance, based on a copy of this control. -
controls
-
controls
-
builder
- Returns:
- a new
ControlsBuilderinstance
-
layout
- Parameters:
defaults- the default controls layout,ControlKey.SEPARATORrepresenting a separator- Returns:
- a new
Controls.Layoutinstance - Throws:
NullPointerException- in casedefaultscontains null
-
key
- Parameters:
name- the controls name- Returns:
- a new
ControlKeyfor identifying aControlsinstance
-
key
- Parameters:
name- the controls namedefaultLayout- the default controls layout- Returns:
- a new
Controls.ControlsKeyfor identifying aControlsinstance
-