|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.ka2ddo.yaac.gui.KenwoodMessageListTableModel
public class KenwoodMessageListTableModel
This provides a sortable, filterable situational status display, attempting to emulate the Kenwood D710 control head's LIST view, as a backing TableModel for a JTable view.
| Field Summary | |
|---|---|
protected static java.text.DecimalFormat |
fmtMonitorFreq
Format string for APRS-standard frequency format. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
KenwoodMessageListTableModel()
Create a KenwoodMessageListTableModel. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt |
| Field Detail |
|---|
protected static final java.text.DecimalFormat fmtMonitorFreq
| Constructor Detail |
|---|
public KenwoodMessageListTableModel()
| Method Detail |
|---|
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 index
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 queried
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queried
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queried
columnpublic int getColumnWidth(int columnIndex)
getColumnWidth in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtained
public boolean isSizeToFit(int columnIndex)
isSizeToFit in interface ColumnSizingTableModelcolumnIndex - int index of the model's column whose width should be obtained
public 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||