Class PIAGroupTree.GrpModelNode

java.lang.Object
com.portal.bas.comp.PIAGroupTree.GrpModelNode
All Implemented Interfaces:
MutableTreeNode, TreeNode
Enclosing class:
PIAGroupTree

public class PIAGroupTree.GrpModelNode extends Object implements MutableTreeNode
  • Method Details

    • getData

      public PModelHandle getData()
    • children

      public Enumeration children()
      Specified by:
      children in interface TreeNode
    • children

      public Enumeration children(boolean force)
      Returns the children of the receiver as an Enumeration.
      Parameters:
      force - if true, forces a reload of the receiver's children
    • removeChildren

      public void removeChildren()
    • getAllowsChildren

      public boolean getAllowsChildren()
      Specified by:
      getAllowsChildren in interface TreeNode
    • getChildAt

      public TreeNode getChildAt(int childIndex)
      Specified by:
      getChildAt in interface TreeNode
    • getChildCount

      public int getChildCount()
      Specified by:
      getChildCount in interface TreeNode
    • getIndex

      public int getIndex(TreeNode node)
      Specified by:
      getIndex in interface TreeNode
    • getParent

      public TreeNode getParent()
      Specified by:
      getParent in interface TreeNode
    • isLeaf

      public boolean isLeaf()
      Specified by:
      isLeaf in interface TreeNode
    • insert

      public void insert(MutableTreeNode child, int index)
      Inserts a child node
      Specified by:
      insert in interface MutableTreeNode
      Parameters:
      child - The node to be inserted
      index - the position at which the node is to be inserted
    • remove

      public void remove(int index)
      Removes a child node
      Specified by:
      remove in interface MutableTreeNode
      Parameters:
      index - The position of the node to be removed
    • remove

      public void remove(MutableTreeNode child)
      Removes a child node
      Specified by:
      remove in interface MutableTreeNode
      Parameters:
      child - The node to be removed
    • setUserObject

      public void setUserObject(Object object)
      Sets the object thats to be represented by this node
      Specified by:
      setUserObject in interface MutableTreeNode
      Parameters:
      object - The object to be represented
    • removeFromParent

      public void removeFromParent()
      Removes this node from its parent
      Specified by:
      removeFromParent in interface MutableTreeNode
    • setParent

      public void setParent(MutableTreeNode newParent)
      Sets the parent of this node
      Specified by:
      setParent in interface MutableTreeNode
      Parameters:
      newParent - The new parent
    • needsRefresh

      public void needsRefresh()
    • toString

      public String toString()
      Overrides:
      toString in class Object