Class TreeTableModelAdapter
java.lang.Object
javax.swing.table.AbstractTableModel
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.xml_data_tree_table_model.TreeTableModelAdapter
- All Implemented Interfaces:
Serializable
,TableModel
public class TreeTableModelAdapter extends AbstractTableModel
This is a wrapper class takes a TreeTableModel and implements the table model
interface. The implementation is trivial, with all of the event dispatching
support provided by the superclass: the AbstractTableModel.
- Version:
- %I% %G%
- Author:
- Philip Milne, Scott Violet
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TreeTableModelAdapter(TreeTableModel treeTableModel, JTree tree)
-
Method Summary
Modifier and Type Method Description Class<?>
getColumnClass(int column)
int
getColumnCount()
String
getColumnName(int column)
int
getRowCount()
Object
getValueAt(int row, int column)
boolean
isCellEditable(int row, int column)
void
setValueAt(Object value, int row, int column)
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
TreeTableModelAdapter
-
-
Method Details
-
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getRowCount
public int getRowCount() -
getValueAt
-
isCellEditable
public boolean isCellEditable(int row, int column)- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-