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 booleanprotected Vectorprotected booleanprotected PRemoveBillInProgressNode -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for setting parent node and dataConstructor for setting parent node, data and childrens -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd children to the nodeObject[]Returns array of childrenschildren()Creates and returns a forward-order enumeration of this node's children.Object[]data()booleancompare fields - not referencesbooleanReturns 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.intReturns the number of children of this node.intReturns the index of child Node from child array.Returns this node's parent or null if this node has no parentbooleanisLeaf()Returns true if this node has no children or setIsNotLeaf prop is not set.voidSet the data at particular column indexvoidset '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:
getChildAtin interfaceTreeNode- Parameters:
childIndex- int- Returns:
- TreeNode
-
getChildCount
public int getChildCount()Returns the number of children of this node.- Specified by:
getChildCountin 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:
getAllowsChildrenin 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
-