public class WaySelectionTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
WaySelectionTableModel(VisibleCtls visibleCtls)
Create a table model for editing the specified set of controls.
|
Modifier and Type | Method and Description |
---|---|
void |
copyInto(VisibleCtls visibleCtls)
Transfer the way selection choices into a VisibleCtls object.
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns Class of values from specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the 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 . |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public WaySelectionTableModel(VisibleCtls visibleCtls)
visibleCtls
- VisibleCtls object to be presented by the table modelpublic int getColumnCount()
JTable
uses this method to determine how many columns it
should create and display by default.getRowCount()
public 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 int getRowCount()
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.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 void copyInto(VisibleCtls visibleCtls)
visibleCtls
- VisibleCtls object to collect the way selection choices.