|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
jwo.landserf.structure.AttributeTableModel
Wraps an attribute table to provide links to a GUI component that requires an AbstractTableModel (e.g JTable).
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
AttributeTableModel(AttributeTable attTable)
Creates a wrapper around an attribute table. |
Method Summary | |
Class |
getColumnClass(int column)
Reports the type of object stored in the given column. |
int |
getColumnCount()
Reports the number of columns in the table. |
String |
getColumnName(int col)
Reports the given column heading. |
int |
getRowCount()
Reports the number of rows in the table. |
Object |
getValueAt(int row,
int col)
Reports the value stored in the table at the given coordinates. |
boolean |
isCellEditable(int row,
int col)
Reports whether the cell represented by the given coordinates is editable. |
void |
setValueAt(Object value,
int row,
int col)
Sets the value stored in the table at the given coordinates. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeTableModel(AttributeTable attTable)
attTable
- Attribute table to wrap inside a TableModel.Method Detail |
public String getColumnName(int col)
col
- Column number to query.
public int getRowCount()
public int getColumnCount()
public Object getValueAt(int row, int col)
row
- Row coordinate to query.col
- Column coordinate to query.
public boolean isCellEditable(int row, int col)
row
- Row coordinate to query.col
- Column coordinate to query.
public Class getColumnClass(int column)
column
- Column to query.
public void setValueAt(Object value, int row, int col)
value
- Value to store in table.row
- Row coordinate of cell to set.col
- Column coordinate of cell to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |