|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.norvelle.textcite.gui.adapter.TableModelAdapter
public class TableModelAdapter
TableModelAdapter: Provides a wrapper for a TableModelAdaptee, so that data structures can be kept entirely separate from all GUI elements. This Adapter passes messages on to the adaptee, and handles a few GUI issues, like managing the currently selected item, etc.
Field Summary | |
---|---|
protected TableModelAdaptee |
adaptee
|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
TableModelAdapter(TableModelAdaptee adaptee)
|
Method Summary | |
---|---|
void |
destroy()
|
int |
getColumnCount()
|
int |
getRowCount()
Returns the number of rows *after* applying the current filter. |
java.lang.Object |
getValueAt(int row,
int column)
Given a numeric row and column value, return the value that corresponds to the location in the table model |
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 TableModelAdaptee adaptee
Constructor Detail |
---|
public TableModelAdapter(TableModelAdaptee adaptee)
Method Detail |
---|
public void destroy()
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
row
- The row of the requested objectcolumn
- The column number of the data field requested from the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |