SRJRCFrames
v0.1.296

de.schwarzrot.ui.control.model
Class DynamicTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by de.schwarzrot.ui.control.model.DynamicTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class DynamicTreeModel
extends DefaultTreeModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
DynamicTreeModel(TreeNode root)
           
DynamicTreeModel(TreeNode root, boolean askAllowsChildren)
           
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
           
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
 int getIndexOfChild(Object parent, Object child)
           
protected  org.apache.commons.logging.Log getLogger()
           
 Object getRoot()
           
 boolean isLeaf(Object node)
           
 void removeTreeModelListener(TreeModelListener l)
           
 void valueForPathChanged(TreePath path, Object newValue)
           
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, setAsksAllowsChildren, setRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicTreeModel

public DynamicTreeModel(TreeNode root)

DynamicTreeModel

public DynamicTreeModel(TreeNode root,
                        boolean askAllowsChildren)
Method Detail

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Specified by:
addTreeModelListener in interface TreeModel
Overrides:
addTreeModelListener in class DefaultTreeModel

getChild

public Object getChild(Object parent,
                       int index)
Specified by:
getChild in interface TreeModel
Overrides:
getChild in class DefaultTreeModel

getChildCount

public int getChildCount(Object parent)
Specified by:
getChildCount in interface TreeModel
Overrides:
getChildCount in class DefaultTreeModel

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Specified by:
getIndexOfChild in interface TreeModel
Overrides:
getIndexOfChild in class DefaultTreeModel

getRoot

public Object getRoot()
Specified by:
getRoot in interface TreeModel
Overrides:
getRoot in class DefaultTreeModel

isLeaf

public boolean isLeaf(Object node)
Specified by:
isLeaf in interface TreeModel
Overrides:
isLeaf in class DefaultTreeModel

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Specified by:
removeTreeModelListener in interface TreeModel
Overrides:
removeTreeModelListener in class DefaultTreeModel

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
Specified by:
valueForPathChanged in interface TreeModel
Overrides:
valueForPathChanged in class DefaultTreeModel

getLogger

protected final org.apache.commons.logging.Log getLogger()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.