Class LiveSessionsTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
uno.anahata.ai.nb.LiveSessionsTableModel
All Implemented Interfaces:
Serializable, TableModel

public class LiveSessionsTableModel extends AbstractTableModel
Table model for displaying active Anahata AI sessions.
See Also:
  • Field Details

    • SESSION_COL

      public static final int SESSION_COL
      Column index for the session nickname.
      See Also:
    • TC_ID_COL

      public static final int TC_ID_COL
      Column index for the TopComponent ID.
      See Also:
    • STATUS_COL

      public static final int STATUS_COL
      Column index for the chat status.
      See Also:
    • MESSAGES_COL

      public static final int MESSAGES_COL
      Column index for the message count.
      See Also:
    • CONTEXT_COL

      public static final int CONTEXT_COL
      Column index for the context window usage percentage.
      See Also:
    • STATE_COL

      public static final int STATE_COL
      Column index for the TopComponent open/closed state.
      See Also:
  • Constructor Details

    • LiveSessionsTableModel

      public LiveSessionsTableModel()
  • Method Details

    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int column)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
    • refresh

      public void refresh()
      Refreshes the table model intelligently, preserving selection by firing granular events.
    • getTopComponentAt

      public AnahataTopComponent getTopComponentAt(int row)
      Returns the AnahataTopComponent at the specified row.
      Parameters:
      row - the row index.
      Returns:
      the AnahataTopComponent, or null if the row is out of bounds.