Package com.portal.app.cc
Class PRemoveBillInProgressNode
java.lang.Object
com.portal.app.cc.PRemoveBillInProgressNode
- All Implemented Interfaces:
TreeNode
PRemoveBillInProgressNode
is used as a Node for building PRemoveBillInProgressTreeTable- Author:
- Manjunatha L
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected Vector
protected boolean
protected PRemoveBillInProgressNode
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for setting parent node and dataConstructor for setting parent node, data and childrens -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add children to the nodeObject[]
Returns array of childrenschildren()
Creates and returns a forward-order enumeration of this node's children.Object[]
data()
boolean
compare fields - not referencesboolean
Returns true if this node is allowed to have children.getChildAt
(int childIndex) Returns the child at the specified index in this node's child array.int
Returns the number of children of this node.int
Returns the index of child Node from child array.Returns this node's parent or null if this node has no parentboolean
isLeaf()
Returns true if this node has no children or setIsNotLeaf prop is not set.void
Set the data at particular column indexvoid
set 'isLeaf' status to 'false'toString()
-
Field Details
-
parent
-
children
-
allowsChildren
protected boolean allowsChildren -
isLeaf
protected boolean isLeaf
-
-
Constructor Details
-
PRemoveBillInProgressNode
public PRemoveBillInProgressNode() -
PRemoveBillInProgressNode
Constructor for setting parent node and data- Parameters:
p
- PRemoveBillInProgressNodes
- Object[]
-
PRemoveBillInProgressNode
Constructor for setting parent node, data and childrens- Parameters:
p
- PRemoveBillInProgressNodes
- String[]c
- Vector
-
-
Method Details
-
setIsNotLeaf
public void setIsNotLeaf()set 'isLeaf' status to 'false' -
equals
compare fields - not references -
addChild
Add children to the node- Parameters:
child
- PRemoveBillInProgressNode
-
data
-
setDataAt
Set the data at particular column index- Parameters:
s
- Stringi
- int
-
getChildAt
Returns the child at the specified index in this node's child array.- Specified by:
getChildAt
in interfaceTreeNode
- Parameters:
childIndex
- int- Returns:
- TreeNode
-
getChildCount
public int getChildCount()Returns the number of children of this node.- Specified by:
getChildCount
in interfaceTreeNode
- Returns:
- int
-
getParent
Returns this node's parent or null if this node has no parent -
getIndex
Returns the index of child Node from child array. -
getAllowsChildren
public boolean getAllowsChildren()Returns true if this node is allowed to have children.- Specified by:
getAllowsChildren
in interfaceTreeNode
- Returns:
- boolean
-
isLeaf
public boolean isLeaf()Returns true if this node has no children or setIsNotLeaf prop is not set. -
children
Creates and returns a forward-order enumeration of this node's children. -
childArray
Returns array of childrens- Returns:
- Object[]
-
toString
-