|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel edu.northwestern.at.utils.swing.TableModelMapper
public class TableModelMapper
Table model that eliminates hidden (zero width) columns.
Field Summary | |
---|---|
protected javax.swing.JTable |
table
Table being mapped. |
protected int[] |
visibleToAll
Map from visible column index to all columns index. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
TableModelMapper(javax.swing.JTable table)
Create a table model that eliminates hidden columns. |
Method Summary | |
---|---|
int |
getColumnCount()
Get number of columns in table. |
int |
getRowCount()
Get number of rows in table. |
java.lang.Object |
getValueAt(int row,
int column)
Get table value at a specified row and column. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JTable table
protected int[] visibleToAll
Constructor Detail |
---|
public TableModelMapper(javax.swing.JTable table)
table
- The table with possibly empty columns. Method Detail |
---|
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
row
- The table row.column
- The table column.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |