java.lang.Object
is.codion.swing.framework.ui.TabbedPanelLayout
- All Implemented Interfaces:
EntityPanel.PanelLayout
A
EntityPanel.PanelLayout
implementation based on a JTabbedPane.The default layout is as follows: __________________________________ | edit |control| | | panel | panel | | |__________|_______| detail | | | panel | | table panel | | |(EntityTablePanel)| | | | | |__________________|_____________|
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Builds aTabbedPanelLayout
.static enum
The available keyboard shortcuts. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<Boolean>
Specifies whether actions to hide detail panels or show them in a dialog should be available to the user, for example in a popup menu or on a toolbar.
Value type: Boolean
Default value: truestatic final KeyboardShortcuts<TabbedPanelLayout.KeyboardShortcut>
The default keyboard shortcut keyStrokes. -
Method Summary
Modifier and TypeMethodDescriptionstatic TabbedPanelLayout.Builder
builder()
<T extends EntityPanel.DetailController>
Optional<T>static TabbedPanelLayout
detailPanelState
(EntityPanel.PanelState detailPanelState) void
layout
(EntityPanel entityPanel) Lays out the panel and adds any layout or detail panel related controls to this panelstatic TabbedPanelLayout
splitPaneResizeWeight
(double splitPaneResizeWeight) void
updateUI()
Updates the UI of all associated components.
-
Field Details
-
INCLUDE_DETAIL_CONTROLS
Specifies whether actions to hide detail panels or show them in a dialog should be available to the user, for example in a popup menu or on a toolbar.
Value type: Boolean
Default value: true -
KEYBOARD_SHORTCUTS
The default keyboard shortcut keyStrokes.
-
-
Method Details
-
updateUI
public void updateUI()Description copied from interface:EntityPanel.PanelLayout
Updates the UI of all associated components. Override to update the UI of components that may be hidden and therefore not updated along with the component tree.- Specified by:
updateUI
in interfaceEntityPanel.PanelLayout
-
layout
Description copied from interface:EntityPanel.PanelLayout
Lays out the panel and adds any layout or detail panel related controls to this panel- Specified by:
layout
in interfaceEntityPanel.PanelLayout
- Parameters:
entityPanel
- the panel to lay out and configure
-
detailController
- Specified by:
detailController
in interfaceEntityPanel.PanelLayout
- Type Parameters:
T
- the detail panel controller type- Returns:
- the
EntityPanel.DetailController
provided by thisEntityPanel.PanelLayout
-
detailPanelState
- Parameters:
detailPanelState
- the detail panel state- Returns:
- a new
TabbedPanelLayout
with the given detail panel state
-
splitPaneResizeWeight
- Parameters:
splitPaneResizeWeight
- the split pane resize weight- Returns:
- a new
TabbedPanelLayout
with the given split pane resize weight
-
builder
- Returns:
- a new
TabbedPanelLayout.Builder
instance
-