org.keridwen.modelling.group.editor.ui
Class GroupTreeNode

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

public class GroupTreeNode
extends DefaultMutableTreeNode

Mutable tree node for groups.

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
GroupTreeNode(com.artenum.frida.interfaces.GroupInterface group)
          Default constructor.
 
Method Summary
 void add(MutableTreeNode newChild)
          Add a new child and add the related bean (i.e Property or Sub-Group) to the inner connectivity table.
 void addChildAndBypassUserObjectUpdate(MutableTreeNode newChild)
          Add the given new child to the present PropertyTreeNode but do not update the Property-Characteristics model.
 boolean addUserObjectToGroup(MutableTreeNode newChild)
           
 com.artenum.frida.interfaces.GroupInterface getGroup()
          Get the linked group.
 String toString()
          Get the name of the present treeGroup.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
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

GroupTreeNode

public GroupTreeNode(com.artenum.frida.interfaces.GroupInterface group)
Default constructor.

Parameters:
group - - Linked group.
Method Detail

getGroup

public com.artenum.frida.interfaces.GroupInterface getGroup()
Get the linked group.

Returns:
- Group of properties.

toString

public String toString()
Get the name of the present treeGroup.

Overrides:
toString in class DefaultMutableTreeNode

add

public void add(MutableTreeNode newChild)
Add a new child and add the related bean (i.e Property or Sub-Group) to the inner connectivity table.

Overrides:
add in class DefaultMutableTreeNode

addChildAndBypassUserObjectUpdate

public void addChildAndBypassUserObjectUpdate(MutableTreeNode newChild)
Add the given new child to the present PropertyTreeNode but do not update the Property-Characteristics model. See add for further explanation.

Parameters:
newChild - - New child being added.

addUserObjectToGroup

public boolean addUserObjectToGroup(MutableTreeNode newChild)


Copyright © 2012-2013 Artenum. All Rights Reserved.