java.lang.Object
is.codion.swing.framework.ui.TabbedDetailLayout
- All Implemented Interfaces:
EntityPanel.DetailLayout
A
EntityPanel.DetailLayout implementation based on a JTabbedPane.The default layout is as follows: __________________________________ | edit |control| | | panel | panel | | |__________|_______| detail | | | panels | | table panel | | |(EntityTablePanel)| | | | | |__________________|_____________|
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilds aTabbedDetailLayout.static enumThe available keyboard shortcuts. -
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: truestatic final is.codion.swing.common.ui.key.KeyboardShortcuts<TabbedDetailLayout.KeyboardShortcut>The default keyboard shortcut keyStrokes.Fields inherited from interface is.codion.swing.framework.ui.EntityPanel.DetailLayout
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic TabbedDetailLayout.Builderbuilder(EntityPanel entityPanel) layout()Lays out a given EntityPanel along with its detail panels.voidupdateUI()Updates the UI of all associated components.
-
Field Details
-
INCLUDE_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
public static final is.codion.swing.common.ui.key.KeyboardShortcuts<TabbedDetailLayout.KeyboardShortcut> KEYBOARD_SHORTCUTSThe default keyboard shortcut keyStrokes.
-
-
Method Details
-
updateUI
public void updateUI()Description copied from interface:EntityPanel.DetailLayoutUpdates 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.DetailLayout
-
layout
Description copied from interface:EntityPanel.DetailLayoutLays out a given EntityPanel along with its detail panels. In case of no special detail panel layout requirements, this method should return an empty Optional.- Specified by:
layoutin interfaceEntityPanel.DetailLayout- Returns:
- the panel laid out with it detail panels or an empty Optional in case of no special layout component.
-
controller
- Specified by:
controllerin interfaceEntityPanel.DetailLayout- Returns:
- the detail controller for this layout, an empty Optional if none is available
-
builder
- Parameters:
entityPanel- the entity panel- Returns:
- a new
TabbedDetailLayout.Builderinstance
-