public class AccessPointTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
AccessPointTableModel(java.util.Map accpt)
Creates a new table model for the given table of access points
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getAccessPoints() |
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col) |
void |
getValues()
Reads all values from the access points into the table model
|
boolean |
isCellEditable(int row,
int col)
Returns the editable status of the cell at the given index.
|
void |
setValueAt(java.lang.Object o,
int row,
int col)
Sets the value at the given index.
|
void |
setValues()
Writes all values from the table model to the access points.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public AccessPointTableModel(java.util.Map accpt)
accessPoints
- a map containing access point objectspublic int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- an indexpublic java.lang.Object getValueAt(int row, int col)
row
- row indexcol
- column indexpublic void setValueAt(java.lang.Object o, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
row
- row indexcol
- column indexo
- The value to be setpublic boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- row indexcol
- column indexpublic void getValues()
public void setValues()
public java.util.Map getAccessPoints()