public class KenwoodMessageListTableModel extends javax.swing.table.AbstractTableModel implements ColumnSizingTableModel, DuplicateCheckedAX25Listener
| Modifier and Type | Field and Description |
|---|---|
protected static java.text.DecimalFormat |
fmtMonitorFreq
Format string for APRS-standard frequency format.
|
| Constructor and Description |
|---|
KenwoodMessageListTableModel()
Create a KenwoodMessageListTableModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumeAX25Frame(AX25Message msg,
AX25Frame frame,
Connector connector,
boolean isDuplicate)
Called when a AX.25 frame is received.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the data Class for the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns an empty name for the column (because the Kenwood D710 control head
doesn't display column headers).
|
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.
|
AX25Message |
getSortedRow(int rowIndex)
Return the object state record for the specified index into the sorted
list of objects that is backing the table 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
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtprotected static final java.text.DecimalFormat fmtMonitorFreq
public KenwoodMessageListTableModel()
public int getRowCount()
getRowCount in interface javax.swing.table.TableModelgetColumnCount()public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelgetRowCount()public AX25Message getSortedRow(int rowIndex)
rowIndex - zero-based row indexpublic 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 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 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 consumeAX25Frame(AX25Message msg, AX25Frame frame, Connector connector, boolean isDuplicate)
consumeAX25Frame in interface DuplicateCheckedAX25Listenermsg - decoded APRS message if the AX.25 frame contains an APRS packet, or null if the frame is not a recognized protocolframe - received AX25Frameconnector - the PortConnector over which the frame was receivedisDuplicate - boolean true if this is a duplicate message (possibly received over a different digipeater path)