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, removeTableModelListenerpublic static Digipeater.BlacklistMask getElementAt(int index)
index - the requested indexindexpublic 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.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - zero-based column indexpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - zero-based column indexpublic boolean isCellEditable(int rowIndex,
                              int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - 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.TableModelsetValueAt in class javax.swing.table.AbstractTableModelaValue - 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