public class BlacklistTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
BlacklistTableModel()
Create a BlacklistTableModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addToBlacklist(java.lang.String callsign)
Add a callsign to the blacklist.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Get the Class of values in the specified column.
|
int |
getColumnCount()
Get the number of columns in the table model.
|
java.lang.String |
getColumnName(int column)
Get the localizd name for the column header.
|
static Digipeater.BlacklistMask |
getElementAt(int index)
Returns the value at the specified index.
|
int |
getRowCount()
Returns the length of the list.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Obtain the value of a particular cell in the table.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Indicate whether the specified cell is editable.
|
void |
removeFromBlacklist(java.lang.String callsign)
Remove a callsign from the blacklist.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Set the value of an editable table cell.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static Digipeater.BlacklistMask getElementAt(int index)
index
- the requested indexindex
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- zero-based row index of the cellcolumnIndex
- zero-based column index of the cellpublic java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- zero-based column indexpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- zero-based column indexpublic boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- zero-based row index of the cellcolumnIndex
- zero-based column index of the cellpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
aValue
- new value for the cellrowIndex
- zero-based row index of the cellcolumnIndex
- zero-based column index of the cellpublic void addToBlacklist(java.lang.String callsign)
callsign
- String of callsignpublic void removeFromBlacklist(java.lang.String callsign)
callsign
- String of callsign