public abstract class AbstractTreeTableModel extends Object implements TreeTableModel
Modifier and Type | Field and Description |
---|---|
protected EventListenerList |
listenerList |
protected Object |
root |
Constructor and Description |
---|
AbstractTreeTableModel(Object root) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener l) |
protected void |
fireTreeNodesChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children) |
protected void |
fireTreeNodesInserted(Object source,
Object[] path,
int[] childIndices,
Object[] children) |
protected void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children) |
protected void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children) |
Class |
getColumnClass(int column)
Returns the type for column number
column . |
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 |
setNodes(Object root) |
void |
setValueAt(Object aValue,
Object node,
int column)
Sets the value for node
node ,
at column number column . |
void |
valueForPathChanged(TreePath path,
Object newValue) |
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)
public void setNodes(Object root)
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)
protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
public Class getColumnClass(int column)
TreeTableModel
column
.getColumnClass
in interface TreeTableModel
public boolean isCellEditable(Object node, int column)
isCellEditable
in interface TreeTableModel
public void setValueAt(Object aValue, Object node, int column)
TreeTableModel
node
,
at column number column
.setValueAt
in interface TreeTableModel