org.stringtemplate.v4.gui
Class JTreeScopeStackModel
java.lang.Object
org.stringtemplate.v4.gui.JTreeScopeStackModel
- All Implemented Interfaces:
- TreeModel
public class JTreeScopeStackModel
- extends Object
- implements TreeModel
From a scope, get stack of enclosing scopes in order from root down
to scope. Then show each scope's (ST's) attributes as children.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTreeScopeStackModel
public JTreeScopeStackModel(InstanceScope scope)
addAttributeDescriptions
public void addAttributeDescriptions(ST st,
JTreeScopeStackModel.StringTree node)
getRoot
public Object getRoot()
- Specified by:
getRoot in interface TreeModel
getChild
public Object getChild(Object parent,
int i)
- Specified by:
getChild in interface TreeModel
getChildCount
public int getChildCount(Object parent)
- Specified by:
getChildCount in interface TreeModel
isLeaf
public boolean isLeaf(Object node)
- Specified by:
isLeaf in interface TreeModel
getIndexOfChild
public int getIndexOfChild(Object parent,
Object child)
- Specified by:
getIndexOfChild in interface TreeModel
valueForPathChanged
public void valueForPathChanged(TreePath treePath,
Object o)
- Specified by:
valueForPathChanged in interface TreeModel
addTreeModelListener
public void addTreeModelListener(TreeModelListener treeModelListener)
- Specified by:
addTreeModelListener in interface TreeModel
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener treeModelListener)
- Specified by:
removeTreeModelListener in interface TreeModel
Copyright © 2011. All Rights Reserved.