Groovy 2.2.1

groovy.inspect.swingui
[Groovy] Class TreeNodeWithProperties

java.lang.Object
  javax.swing.tree.DefaultMutableTreeNode
      groovy.inspect.swingui.TreeNodeWithProperties

class TreeNodeWithProperties
extends DefaultMutableTreeNode

This class is a TreeNode and you can store additional properties on it.

Authors:
Hamlet D'Arcy


Field Summary
 
Fields inherited from class DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Property Summary
List properties

 
Constructor Summary
TreeNodeWithProperties(def userObject, List properties)

Creates a tree node and attaches properties to it.

 
Method Summary
String getPropertyValue(String name)

boolean isClassNode()

boolean isMethodNode()

 
Methods inherited from class DefaultMutableTreeNode
getChildAt, getDepth, getFirstLeaf, breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getFirstChild, getLastChild, getLastLeaf, getLeafCount, getNextLeaf, getNextNode, getNextSibling, getPreviousLeaf, getPreviousNode, getPreviousSibling, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, removeAllChildren, removeFromParent, setAllowsChildren, setUserObject, add, remove, remove, toString, clone, getParent, insert, setParent, getPath, getIndex, getLevel, getRoot, children, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

properties

List properties


 
Constructor Detail

TreeNodeWithProperties

TreeNodeWithProperties(def userObject, List properties)
Creates a tree node and attaches properties to it.
Parameters:
userObject - same as a DefaultMutableTreeNode requires
properties - a list of String lists


 
Method Detail

getPropertyValue

String getPropertyValue(String name)


isClassNode

boolean isClassNode()


isMethodNode

boolean isMethodNode()


 

Copyright © 2003-2013 The Codehaus. All rights reserved.