Interface EntityPanel.DetailLayout

All Superinterfaces:
EntityPanel.Selector
All Known Implementing Classes:
TabbedDetailLayout, WindowDetailLayout
Enclosing class:
EntityPanel

public static interface EntityPanel.DetailLayout extends EntityPanel.Selector
Handles the layout of a EntityPanel with one or more detail panels.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    default void
    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

      JComponent layout(EntityPanel entityPanel)
      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 the EntityPanel.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

      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.
      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