|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.lowagie.rups.view.models.JTableAutoModel
public class JTableAutoModel
A reusable TableModel class for tables that implement the JTableAutoModelInterface.
Field Summary | |
---|---|
protected JTableAutoModelInterface |
table
The table that knows how to model itself. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
JTableAutoModel(JTableAutoModelInterface table)
Constructs an auto model for a JTable. |
Method Summary | |
---|---|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int columnIndex)
|
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, 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 JTableAutoModelInterface table
Constructor Detail |
---|
public JTableAutoModel(JTableAutoModelInterface table)
table
- a JTable that knows information about its model.Method Detail |
---|
public int getColumnCount()
TableModel.getColumnCount()
public int getRowCount()
TableModel.getRowCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
columnIndex
- a column number.
AbstractTableModel.getColumnName(int)
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- int a row numbercolumnIndex
- int a column number
TableModel.getValueAt(int, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |