Class AsiCardsContainerPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class AsiCardsContainerPanel extends AbstractAsiContainerPanel
A container panel that displays active AI agi sessions as a collection of "sticky note" cards. This implementation is ideal for standalone applications or sidebars where a more visual, dashboard-like overview is desired.
Author:
anahata
See Also:
  • Field Details

    • cardContainer

      private final JPanel cardContainer
      The panel containing the collection of AgiCard components.
    • cachedCards

      private final Map<Agi,AgiCard> cachedCards
      Cache mapping AGI sessions to their corresponding AgiCard UI representations.
    • selectedAgi

      private Agi selectedAgi
      The currently selected AGI session within the cards collection.
  • Constructor Details

    • AsiCardsContainerPanel

      public AsiCardsContainerPanel(@NonNull @NonNull AbstractSwingAsiContainer container)
      Constructs a new cards container panel.
      Parameters:
      container - The ASI container.
  • Method Details

    • refreshView

      protected void refreshView()
      Description copied from class: AbstractAsiContainerPanel
      Refreshes the specific view implementation (e.g., table or cards).
      Specified by:
      refreshView in class AbstractAsiContainerPanel
    • setSelectedAgi

      private void setSelectedAgi(Agi agi)
      Updates the currently selected AGI session and handles selection highlighting across cards.
      Parameters:
      agi - The AGI session to select, or null to clear selection.
    • getSelectedAgi

      protected Agi getSelectedAgi()
      Description copied from class: AbstractAsiContainerPanel
      Gets the currently selected agi session in the view.
      Specified by:
      getSelectedAgi in class AbstractAsiContainerPanel
      Returns:
      The selected agi, or null if none.