Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityPanel.DetailLayout
- All Superinterfaces:
EntityPanel.Selector
- All Known Implementing Classes:
TabbedDetailLayout,WindowDetailLayout
- Enclosing class:
- EntityPanel
Handles the layout of a EntityPanel with one or more detail panels.
-
Method Summary
Modifier and TypeMethodDescriptionlayout(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.default voidupdateUI()Updates the UI of all associated components.Methods inherited from interface is.codion.swing.framework.ui.EntityPanel.Selector
select
-
Method Details
-
updateUI
default void updateUI()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. -
layout
Creates 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().- Parameters:
entityPanel- the panel to lay out and configure- Returns:
- the main component
- Throws:
IllegalStateException- in case the panel has already been laid out
-
panelState
Note that the detail panel state may be shared between detail panels, as they may be displayed in a shared window.- Parameters:
detailPanel- the detail panel- Returns:
- the value controlling the state of the given detail panel
- Throws:
IllegalStateException- in case the panel has not been laid out
-