@NotStorableClass public class JTreeModelForNodeForClass extends Object implements TreeModel
Constructor and Description |
---|
JTreeModelForNodeForClass(NodeForClass root) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener listener) |
protected void |
fireTreeStructureChanged(NodeForClass oldRoot)
The only event raised by this model is TreeStructureChanged with the root
as path, i.e. the whole tree has changed.
|
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
boolean |
isLeaf(Object object) |
void |
removeTreeModelListener(TreeModelListener listener) |
void |
valueForPathChanged(TreePath path,
Object newValue) |
public JTreeModelForNodeForClass(NodeForClass root)
protected void fireTreeStructureChanged(NodeForClass oldRoot)
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public void removeTreeModelListener(TreeModelListener listener)
removeTreeModelListener
in interface TreeModel
public void addTreeModelListener(TreeModelListener listener)
addTreeModelListener
in interface TreeModel
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.