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, wait
getColumnCount, getColumnName, getValueAt
getChild, getChildCount
protected 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 TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerList
protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerList
protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerList
protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
EventListenerList
public Class getColumnClass(int column)
getColumnClass
in interface TreeTableModel
public boolean isCellEditable(Object node, int column)
isCellEditable
in interface TreeTableModel
public void setValueAt(Object aValue, Object node, int row, int column)
setValueAt
in interface TreeTableModel
Copyright © 2003, 2023, Oracle and/or its affiliates.