Class LiveSessionsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
uno.anahata.ai.nb.LiveSessionsTableModel
- All Implemented Interfaces:
Serializable, TableModel
Table model for displaying active Anahata AI sessions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intColumn index for the context window usage percentage.static final intColumn index for the message count.static final intColumn index for the session nickname.static final intColumn index for the TopComponent open/closed state.static final intColumn index for the chat status.static final intColumn index for the TopComponent ID.Fields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> getColumnClass(int columnIndex) intgetColumnName(int column) intgetTopComponentAt(int row) Returns the AnahataTopComponent at the specified row.getValueAt(int rowIndex, int columnIndex) voidrefresh()Refreshes the table model intelligently, preserving selection by firing granular events.Methods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
SESSION_COL
public static final int SESSION_COLColumn index for the session nickname.- See Also:
-
TC_ID_COL
public static final int TC_ID_COLColumn index for the TopComponent ID.- See Also:
-
STATUS_COL
public static final int STATUS_COLColumn index for the chat status.- See Also:
-
MESSAGES_COL
public static final int MESSAGES_COLColumn index for the message count.- See Also:
-
CONTEXT_COL
public static final int CONTEXT_COLColumn index for the context window usage percentage.- See Also:
-
STATE_COL
public static final int STATE_COLColumn 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
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getValueAt
-
refresh
public void refresh()Refreshes the table model intelligently, preserving selection by firing granular events. -
getTopComponentAt
Returns the AnahataTopComponent at the specified row.- Parameters:
row- the row index.- Returns:
- the AnahataTopComponent, or null if the row is out of bounds.
-
