Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityPanel.DetailLayout
- All Known Implementing Classes:
TabbedDetailLayout
,WindowDetailLayout
- Enclosing class:
- EntityPanel
public static interface EntityPanel.DetailLayout
Handles the layout of a EntityPanel with one or more detail panels.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<EntityPanel,
EntityPanel.DetailLayout> A convenience instance for indicating no detail layout. -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<EntityPanel.DetailController>
default Optional<JComponent>
layout()
Lays out a given EntityPanel along with its detail panels.default void
updateUI()
Updates the UI of all associated components.
-
Field Details
-
NONE
A convenience instance for indicating no detail layout.
-
-
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
Lays 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.- Returns:
- the panel laid out with it detail panels or an empty Optional in case of no special layout component.
- Throws:
IllegalStateException
- in case the panel has no detail panels or if it has already been laid out
-
controller
- Returns:
- the detail controller for this layout, an empty Optional if none is available
-