org.keridwen.modelling.group.editor.ui
Class CharacteristicTreeNode<T>

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.keridwen.modelling.group.editor.ui.CharacteristicTreeNode<T>
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class CharacteristicTreeNode<T>
extends DefaultMutableTreeNode

JTree node for Characteristics.

Author:
J.Forest, Artenum SARL
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
CharacteristicTreeNode(com.artenum.frida.interfaces.CharacteristicInterface<T> characteristic)
          Default constructor.
 
Method Summary
 com.artenum.frida.interfaces.CharacteristicInterface<T> getCharacteristic()
          Get the Characteristic linked to the present node.
 String toString()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharacteristicTreeNode

public CharacteristicTreeNode(com.artenum.frida.interfaces.CharacteristicInterface<T> characteristic)
Default constructor.

Parameters:
userObject - - Characteristic linked to the node.
Method Detail

getCharacteristic

public com.artenum.frida.interfaces.CharacteristicInterface<T> getCharacteristic()
Get the Characteristic linked to the present node. This is equivalent to (CharacteristicInterface)this.getUserObject().

Returns:
- the linked Characteristic.

toString

public String toString()
Overrides:
toString in class DefaultMutableTreeNode


Copyright © 2012-2013 Artenum. All Rights Reserved.