public class DigipeatAliasEnableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
DigipeatAliasEnableModel(java.util.Set<java.lang.String> currentAliases)
Create a table model for modifying the global enable status of digipeat aliases.
|
Modifier and Type | Method and Description |
---|---|
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 the localized name for the column.
|
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)
Report whether the specified table cell can be edited and modified by the user.
|
boolean |
isChanged()
Indicate whether any edits have occurred since the table model was instantiated.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Set the value of the specified table cell.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public DigipeatAliasEnableModel(java.util.Set<java.lang.String> currentAliases)
currentAliases
- a Set of String alias namespublic 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
- zero-based model row index of cellcolumnIndex
- zero-based model column index of 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 model row index of cellcolumnIndex
- zero-based model column index of cellpublic boolean isChanged()