public class DigipeatAliasTableModel
extends javax.swing.table.AbstractTableModel
| Modifier and Type | Method and Description |
|---|---|
void |
addRow()
Create an empty row in the table for the user to fill in.
|
void |
deleteRow(int rowIndex)
Delete a row from the table, taking away that particular digipeat alias definition.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the Class for data in the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for the column.
|
DigipeatAliasRecord |
getDigipeatRecord(java.lang.String baseCallsign)
Get a Digipeat alias record corresponding to the specified digipeater callsign, if
such a record exists.
|
static DigipeatAliasTableModel |
getInstance()
Get a reference to the singleton DigipeatAliasCatalog.
|
DigipeatAliasRecord |
getRow(int rowIndex)
Get the Nth DigipeatAliasRecord in the catalog.
|
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 |
isCellEditable(int rowIndex,
int columnIndex)
Specify whether the indexed cell is editable or not
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value for the cell at
columnIndex and
rowIndex. |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic static DigipeatAliasTableModel getInstance()
public int getColumnCount()
getRowCount()public int getRowCount()
getColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.rowIndex - 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 boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - the row being queriedcolumnIndex - the column being queriedpublic void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
columnIndex and
rowIndex.setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelaValue - the new value Object for the specified cellrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic void addRow()
public void deleteRow(int rowIndex)
rowIndex - zero-based int index of row to deletepublic DigipeatAliasRecord getRow(int rowIndex)
rowIndex - zero-based row indexpublic DigipeatAliasRecord getDigipeatRecord(java.lang.String baseCallsign)
baseCallsign - String callsign to search for