public class ConnectionModel extends javax.swing.table.AbstractTableModel implements ColumnSizingTableModel, ConnStateChangeListener
| Constructor and Description |
|---|
ConnectionModel()
Create a TableModel for viewing the current AX.25 connected-mode sessions
observed by this instance of YAAC.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds a listener to the list that's notified each time a change
to the data model occurs.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns rendering data type for each column of the table.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for each column.
|
int |
getColumnWidth(int columnIndex)
Specifies the default initial width of a column from this model.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isSizeToFit(int columnIndex)
Specifies whether setWidthToFit() should be enabled on this column
|
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes a listener from the list that's notified each time a
change to the data model occurs.
|
void |
updateConnStateRow(AX25Callsign sender,
AX25Callsign dest)
Report that the row containing the specified pair of callsigns has been updated.
|
void |
updateWholeConStateTable()
Report that a ConnState session has been added or removed from the
AX25Stack, but we don't know which row number it is. |
findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, setValueAtpublic ConnectionModel()
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetRowCount()public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelgetColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.getValueAt in interface javax.swing.table.TableModelrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic int getColumnWidth(int columnIndex)
getColumnWidth in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtainedpublic boolean isSizeToFit(int columnIndex)
isSizeToFit in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtainedpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface javax.swing.table.TableModeladdTableModelListener in class javax.swing.table.AbstractTableModell - the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModelremoveTableModelListener in class javax.swing.table.AbstractTableModell - the TableModelListenerpublic void updateConnStateRow(AX25Callsign sender, AX25Callsign dest)
updateConnStateRow in interface ConnStateChangeListenersender - AX25Callsign of originator of sessiondest - AX25Callsign of recipient of sessionpublic void updateWholeConStateTable()
AX25Stack, but we don't know which row number it is.
This is expected to be called from a thread other than the AWT dispatch thread.updateWholeConStateTable in interface ConnStateChangeListener