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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final is.codion.common.property.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: true -
Method Summary
Modifier and TypeMethodDescriptionstatic TabbedPanelLayout.Builderbuilder()<T extends EntityPanel.DetailController>
Optional<T>static TabbedPanelLayoutdetailPanelState(EntityPanel.PanelState detailPanelState) voidlayout(EntityPanel entityPanel) Lays out the panel and adds any layout or detail panel related controls to this panelstatic TabbedPanelLayoutsplitPaneResizeWeight(double splitPaneResizeWeight) voidupdateUI()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
-
-
Method Details
-
updateUI
public void updateUI()Description copied from interface:EntityPanel.PanelLayoutUpdates 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:
updateUIin interfaceEntityPanel.PanelLayout
-
layout
Description copied from interface:EntityPanel.PanelLayoutLays out the panel and adds any layout or detail panel related controls to this panel- Specified by:
layoutin interfaceEntityPanel.PanelLayout- Parameters:
entityPanel- the panel to lay out and configure
-
detailController
- Specified by:
detailControllerin interfaceEntityPanel.PanelLayout- Type Parameters:
T- the detail panel controller type- Returns:
- the
EntityPanel.DetailControllerprovided by thisEntityPanel.PanelLayout
-
detailPanelState
- Parameters:
detailPanelState- the detail panel state- Returns:
- a new
TabbedPanelLayoutwith the given detail panel state
-
splitPaneResizeWeight
- Parameters:
splitPaneResizeWeight- the split pane resize weight- Returns:
- a new
TabbedPanelLayoutwith the given split pane resize weight
-
builder
- Returns:
- a new
TabbedPanelLayout.Builderinstance
-