Class AbstractTreeTableModel
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.xml_data_tree_table_model.AbstractTreeTableModel
- All Implemented Interfaces:
TreeTableModel
,TreeModel
public abstract class AbstractTreeTableModel extends Object implements TreeTableModel
An abstract implementation of the TreeTableModel interface, handling the list
of listeners.
- Version:
- %I% %G%
- Author:
- Philip Milne
-
Constructor Summary
Constructors Constructor Description AbstractTreeTableModel(Object root)
-
Method Summary
Modifier and Type Method Description void
addTreeModelListener(TreeModelListener l)
Class<?>
getColumnClass(int column)
Returns the type for column numbercolumn
.int
getIndexOfChild(Object parent, Object child)
Object
getRoot()
boolean
isCellEditable(Object node, int column)
By default, make the column with the Tree in it the only editable one.boolean
isLeaf(Object node)
void
removeTreeModelListener(TreeModelListener l)
void
setValueAt(Object aValue, Object node, int column)
Sets the value for nodenode
, at column numbercolumn
.void
valueForPathChanged(TreePath path, Object newValue)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.tree.TreeModel
getChild, getChildCount
Methods inherited from interface de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.xml_data_tree_table_model.TreeTableModel
getColumnCount, getColumnName, getValueAt
-
Constructor Details
-
AbstractTreeTableModel
-
-
Method Details
-
getRoot
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
getColumnClass
Description copied from interface:TreeTableModel
Returns the type for column numbercolumn
.- Specified by:
getColumnClass
in interfaceTreeTableModel
-
isCellEditable
By default, make the column with the Tree in it the only editable one. Making this column editable causes the JTable to forward mouse and keyboard events in the Tree column to the underlying JTree.- Specified by:
isCellEditable
in interfaceTreeTableModel
-
setValueAt
Description copied from interface:TreeTableModel
Sets the value for nodenode
, at column numbercolumn
.- Specified by:
setValueAt
in interfaceTreeTableModel
-