java.lang.Object
is.codion.swing.framework.ui.TabbedDetailLayout
- All Implemented Interfaces:
EntityPanel.DetailLayout,EntityPanel.Selector
A
EntityPanel.DetailLayout implementation based on a JTabbedPane.The default layout is as follows: __________________________________ | edit |control| | | panel | panel | | |__________|_______| detail | | | panel | | 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. -
Method Summary
Modifier and TypeMethodDescriptionstatic TabbedDetailLayout.Builderbuilder()layout(EntityPanel entityPanel) Creates and lays out the component to use as the main component of the given entity panel, including its detail panels.is.codion.common.value.Value<EntityPanel.PanelState>panelState(EntityPanel detailPanel) Note that the detail panel state may be shared between detail panels, as they may be displayed in a shared window.voidselect(EntityPanel entityPanel) Selects the given entity panel.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.DetailLayoutCreates and lays out the component to use as the main component of the given entity panel, including its detail panels. In case of no detail panels, this method should return theEntityPanel.mainPanel().- Specified by:
layoutin interfaceEntityPanel.DetailLayout- Parameters:
entityPanel- the panel to lay out and configure- Returns:
- the main component
-
select
Description copied from interface:EntityPanel.SelectorSelects the given entity panel. If the entityPanel is not available, calling this method has no effect.- Specified by:
selectin interfaceEntityPanel.Selector- Parameters:
entityPanel- the entity panel to select
-
panelState
Description copied from interface:EntityPanel.DetailLayoutNote that the detail panel state may be shared between detail panels, as they may be displayed in a shared window.- Specified by:
panelStatein interfaceEntityPanel.DetailLayout- Parameters:
detailPanel- the detail panel- Returns:
- the value controlling the state of the given detail panel
-
builder
- Returns:
- a new
TabbedDetailLayout.Builderinstance
-