public abstract class AbstractTreeTableModel extends Object implements TreeTableModel
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener listener) |
protected void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object... children)
Notifies all listeners that have registered interest for
'tree nodes changed' event.
|
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object... children)
Notify all listeners that have registered interest for
'tree nodes inserted' event.
|
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object... children)
Notify all listeners that have registered interest for
'tree nodes removed' event.
|
Class<?> |
getColumnClass(int column) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
boolean |
isCellEditable(int column)
By default, make the column with the Tree in it the only editable one.
|
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumnCount, getColumnName, getValueAt
getChild, getChildCount, valueForPathChanged
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener listener)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener listener)
removeTreeModelListener
in interface TreeModel
protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object... children)
source
- The Object responsible for generating the event.path
- An array of Object identifying the path to the parent of the modified items.childIndices
- An array of int that specifies the index values of the removed items.children
- An array of Object containing the inserted, removed, or changed objects.EventListenerList
protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object... children)
source
- The Object responsible for generating the event.path
- An array of Object identifying the path to the parent of the modified items.childIndices
- An array of int that specifies the index values of the removed items.children
- An array of Object containing the inserted, removed, or changed objects.EventListenerList
protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object... children)
source
- The Object responsible for generating the event.path
- An array of Object identifying the path to the parent of the modified items.childIndices
- An array of int that specifies the index values of the removed items.children
- An array of Object containing the inserted, removed, or changed objects.EventListenerList
public Class<?> getColumnClass(int column)
getColumnClass
in interface TreeTableModel
column
- the column numbercolumn
.public boolean isCellEditable(int column)
isCellEditable
in interface TreeTableModel
column
- the column numberCopyright © 2001–2016. All rights reserved.