net.sf.parser4j.parsetreeinspector.service
Class JTreeModelForNode

java.lang.Object
  extended by net.sf.parser4j.parsetreeinspector.service.JTreeModelForNode
All Implemented Interfaces:
javax.swing.tree.TreeModel

public class JTreeModelForNode
extends java.lang.Object
implements javax.swing.tree.TreeModel

Jtree model to manage parse tree, tree of IJtreeNode

Author:
luc peuvrier

Constructor Summary
JTreeModelForNode()
           
JTreeModelForNode(IJtreeNode rootNode)
           
 
Method Summary
 void addTreeModelListener(javax.swing.event.TreeModelListener listener)
           
 java.lang.Object getChild(java.lang.Object parent, int index)
           
 int getChildCount(java.lang.Object parent)
           
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
           
 java.lang.Object getRoot()
           
 boolean isLeaf(java.lang.Object object)
           
 void removeTreeModelListener(javax.swing.event.TreeModelListener listener)
           
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTreeModelForNode

public JTreeModelForNode(IJtreeNode rootNode)

JTreeModelForNode

public JTreeModelForNode()
Method Detail

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Specified by:
getChild in interface javax.swing.tree.TreeModel

getChildCount

public int getChildCount(java.lang.Object parent)
Specified by:
getChildCount in interface javax.swing.tree.TreeModel

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel

getRoot

public java.lang.Object getRoot()
Specified by:
getRoot in interface javax.swing.tree.TreeModel

isLeaf

public boolean isLeaf(java.lang.Object object)
Specified by:
isLeaf in interface javax.swing.tree.TreeModel

valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener listener)
Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel

addTreeModelListener

public void addTreeModelListener(javax.swing.event.TreeModelListener listener)
Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.