Class PRemovePaymentSetupNode

java.lang.Object
com.portal.app.cc.PRemovePaymentSetupNode
All Implemented Interfaces:
TreeNode

public class PRemovePaymentSetupNode extends Object implements TreeNode
PRemovePaymentSetupNode is used as a Node for building PRemovePaymentSetupTreeTable
Author:
Manjunatha L
  • Field Details

    • parent

      protected PRemovePaymentSetupNode parent
    • children

      protected Vector children
    • allowsChildren

      protected boolean allowsChildren
    • isLeaf

      protected boolean isLeaf
  • Constructor Details

  • Method Details

    • setIsNotLeaf

      public void setIsNotLeaf()
      set 'isLeaf' status to 'false'
    • equals

      public boolean equals(Object other)
      compare fields - not references
      Overrides:
      equals in class Object
    • addChild

      public void addChild(PRemovePaymentSetupNode child)
      Add children to the node
      Parameters:
      child - PRemoveBillInProgressNode
    • data

      public Object[] data()
    • setDataAt

      public void setDataAt(Object s, int i)
      Set the data at particular column index
      Parameters:
      s - String
      i - int
    • getChildAt

      public TreeNode getChildAt(int childIndex)
      Returns the child at the specified index in this node's child array.
      Specified by:
      getChildAt in interface TreeNode
      Parameters:
      childIndex - int
      Returns:
      TreeNode
    • getChildCount

      public int getChildCount()
      Returns the number of children of this node.
      Specified by:
      getChildCount in interface TreeNode
      Returns:
      int
    • getParent

      public TreeNode getParent()
      Returns this node's parent or null if this node has no parent
      Specified by:
      getParent in interface TreeNode
      Returns:
      TreeNode
    • getIndex

      public int getIndex(TreeNode node)
      Returns the index of child Node from child array.
      Specified by:
      getIndex in interface TreeNode
      Parameters:
      node - TreeNode
      Returns:
      int
    • getAllowsChildren

      public boolean getAllowsChildren()
      Returns true if this node is allowed to have children.
      Specified by:
      getAllowsChildren in interface TreeNode
      Returns:
      boolean
    • isLeaf

      public boolean isLeaf()
      Returns true if this node has no children or setIsNotLeaf prop is not set.
      Specified by:
      isLeaf in interface TreeNode
      Returns:
      boolean
    • children

      public Enumeration children()
      Creates and returns a forward-order enumeration of this node's children.
      Specified by:
      children in interface TreeNode
      Returns:
      Enumeration
    • childArray

      public Object[] childArray()
      Returns array of childrens
      Returns:
      Object[]
    • toString

      public String toString()
      Overrides:
      toString in class Object