public abstract class AbstractTreeTableModel extends Object implements TreeTableModel
| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listenerList
Listeners that have registered interest for notification on this event type.
|
protected Object |
root
Root of tree model.
|
| Constructor and Description |
|---|
AbstractTreeTableModel(Object root)
Creates a new AbstractTreeTableModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener l)
Default implmentation for method in the TreeModel interface.
|
protected void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
protected void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that have registered interest for
notification on this event type.
|
Class |
getColumnClass(int column)
Default implmentation for method in the TreeModel interface.
|
int |
getIndexOfChild(Object parent,
Object child)
This is not called in the JTree's default mode: use a naive implementation.
|
Object |
getRoot()
Default implmentation for method in the TreeModel interface.
|
boolean |
isCellEditable(Object node,
int column)
By default, make the column with the Tree in it the only editable one.
|
boolean |
isLeaf(Object node)
Default implmentation for method in the TreeModel interface.
|
void |
removeTreeModelListener(TreeModelListener l)
Default implmentation for method in the TreeModel interface.
|
void |
setValueAt(Object aValue,
Object node,
int row,
int column)
Default implmentation for method in the TreeModel interface.
|
void |
valueForPathChanged(TreePath path,
Object newValue)
Default implmentation for method in the TreeModel interface.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnCount, getColumnName, getValueAtgetChild, getChildCountprotected Object root
protected EventListenerList listenerList
public AbstractTreeTableModel(Object root)
root - root of tree modelpublic Object getRoot()
public boolean isLeaf(Object node)
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpublic int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelpublic void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModelprotected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListprotected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListprotected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListprotected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerListpublic Class getColumnClass(int column)
getColumnClass in interface TreeTableModelpublic boolean isCellEditable(Object node, int column)
isCellEditable in interface TreeTableModelpublic void setValueAt(Object aValue, Object node, int row, int column)
setValueAt in interface TreeTableModelCopyright © 2003, 2023, Oracle and/or its affiliates.