Modifier and Type | Field and Description |
---|---|
protected boolean |
allowsChildren |
protected Vector |
children |
protected boolean |
isLeaf |
protected PRemoveBillInProgressNode |
parent |
Constructor and Description |
---|
PRemoveBillInProgressNode() |
PRemoveBillInProgressNode(PRemoveBillInProgressNode p,
Object[] s)
Constructor for setting parent node and data
|
PRemoveBillInProgressNode(PRemoveBillInProgressNode p,
String[] s,
Vector c)
Constructor for setting parent node, data and childrens
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(PRemoveBillInProgressNode child)
Add children to the node
|
Object[] |
childArray()
Returns array of childrens
|
Enumeration |
children()
Creates and returns a forward-order enumeration of this node's children.
|
Object[] |
data() |
boolean |
equals(Object other)
compare fields - not references
|
boolean |
getAllowsChildren()
Returns true if this node is allowed to have children.
|
TreeNode |
getChildAt(int childIndex)
Returns the child at the specified index in this node's child array.
|
int |
getChildCount()
Returns the number of children of this node.
|
int |
getIndex(TreeNode node)
Returns the index of child Node from child array.
|
TreeNode |
getParent()
Returns this node's parent or null if this node has no parent
|
boolean |
isLeaf()
Returns true if this node has no children or setIsNotLeaf prop is not set.
|
void |
setDataAt(String s,
int i)
Set the data at particular column index
|
void |
setIsNotLeaf()
set 'isLeaf' status to 'false'
|
String |
toString() |
protected PRemoveBillInProgressNode parent
protected Vector children
protected boolean allowsChildren
protected boolean isLeaf
public PRemoveBillInProgressNode()
public PRemoveBillInProgressNode(PRemoveBillInProgressNode p, Object[] s)
p
- PRemoveBillInProgressNodes
- Object[]public PRemoveBillInProgressNode(PRemoveBillInProgressNode p, String[] s, Vector c)
p
- PRemoveBillInProgressNodes
- String[]c
- Vectorpublic void setIsNotLeaf()
public boolean equals(Object other)
public void addChild(PRemoveBillInProgressNode child)
child
- PRemoveBillInProgressNodepublic Object[] data()
public void setDataAt(String s, int i)
s
- Stringi
- intpublic TreeNode getChildAt(int childIndex)
getChildAt
in interface TreeNode
childIndex
- intpublic int getChildCount()
getChildCount
in interface TreeNode
public TreeNode getParent()
public int getIndex(TreeNode node)
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
public boolean isLeaf()
public Enumeration children()
public Object[] childArray()
Copyright © 2003, 2023, Oracle and/or its affiliates.