Class EntityPanel.DetailPanels

java.lang.Object
is.codion.swing.framework.ui.EntityPanel.DetailPanels
Enclosing class:
EntityPanel

public final class EntityPanel.DetailPanels extends Object
Manages the detail panels for a EntityPanel
  • Method Details

    • add

      public void add(EntityPanel... detailPanels)
      Adds the given detail panels and sets this panel as their parent panel
      Parameters:
      detailPanels - the detail panels
      Throws:
      IllegalStateException - if the panel has already been initialized
      IllegalArgumentException - if this panel already contains a given detail panel
    • get

      public Collection<EntityPanel> get()
      Returns all detail panels.
      Returns:
      the detail panels
    • get

      public <T extends EntityPanel> T get(EntityType entityType)
      Returns the first detail panel found based on the given entityType
      Type Parameters:
      T - the entity panel type
      Parameters:
      entityType - the entityType of the detail panel to retrieve
      Returns:
      the detail panel of the given type
      Throws:
      IllegalArgumentException - in case a panel based on the given entityType was not found
    • linked

      public Collection<EntityPanel> linked()
      Returns the detail panels which models have an active link to this panels model.
      Returns:
      the currently linked detail EntityPanels, if any
      See Also:
    • added

      public Observer<EntityPanel> added()
      Returns:
      an Observer notified when a detail panel is added to this panel
      See Also: