Module is.codion.swing.common.ui
Interface Controls.Layout
- Enclosing interface:
- Controls
public static interface Controls.Layout
Specifies a layout for a
Controls
instance.-
Method Summary
Modifier and TypeMethodDescriptionclear()
Clears all controls from this layoutcontrol
(Control.Builder<?, ?> controlBuilder) control
(ControlKey<?> controlKey) Adds a standard controlcontrols
(ControlKey<Controls> controlsKey) Adds standard controlscontrols
(Controls.ControlsKey controlsKey, Consumer<Controls.Layout> layout) Adds standard configurable controlscopy()
create
(ControlMap controlMap) defaults()
Adds all remaining default controlsdefaults
(ControlKey<?> stopAt) Adds all remaining default controls, up until and includingstopAt
Adds a separator
-
Method Details
-
separator
Controls.Layout separator()Adds a separator- Returns:
- this layout instance
-
control
Adds a standard control- Parameters:
controlKey
- the key identifying the standard control to add- Returns:
- this layout instance
-
control
- Parameters:
control
- the control to add- Returns:
- this layout instance
-
control
- Parameters:
controlBuilder
- the builder for the control to add- Returns:
- this layout instance
-
controls
Adds standard controls- Parameters:
controlsKey
- the key identifying the standard controls to add- Returns:
- this layout instance
-
controls
Adds standard configurable controls- Parameters:
controlsKey
- the controls keylayout
- provides a way to configure the layout- Returns:
- this layout instance
- Throws:
IllegalArgumentException
- in case theControls
associated withcontrolsKey
does not provide a default layout
-
action
- Parameters:
action
- the Action to add- Returns:
- this layout instance
-
defaults
Controls.Layout defaults()Adds all remaining default controls- Returns:
- this layout instance
-
defaults
Adds all remaining default controls, up until and includingstopAt
- Parameters:
stopAt
- the standard control to stop at (inclusive)- Returns:
- this layout instance
-
clear
Controls.Layout clear()Clears all controls from this layout- Returns:
- this layout instance
-
copy
Controls.Layout copy()- Returns:
- a copy of this
Controls.Layout
instance
-
create
- Parameters:
controlMap
- provides the standard controls- Returns:
- a
Controls
instance based on this layout
-