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, removeTableModelListener
public 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.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column being queriedcolumn
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- 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.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
aValue
- 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