Class DefaultNode
java.lang.Object
com.webmethods.caf.faces.data.tree.object.DefaultNode
- All Implemented Interfaces:
INode
,Serializable
- Direct Known Subclasses:
BoundChildrenNode
Default
INode
implementation.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DefaultNode
(Object data) Construct new instance and set data.DefaultNode
(Object data, String id) Construct new instance and set data and id. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add child.List ofINode
children, in order.getData()
Row data.getId()
Row id.Node parent, or null for root.void
removeChild
(INode child) Remove child.void
setChildren
(List<INode> children) Set node children.void
Set node data.void
Set node id.void
Set node parent.
-
Field Details
-
m_data
-
m_id
-
m_parent
-
m_children
-
-
Constructor Details
-
DefaultNode
public DefaultNode()Default constructor. -
DefaultNode
Construct new instance and set data.- Parameters:
data
-
-
DefaultNode
Construct new instance and set data and id.- Parameters:
data
-id
-
-
-
Method Details
-
getData
Description copied from interface:INode
Row data. -
getId
Description copied from interface:INode
Row id. -
getParent
Description copied from interface:INode
Node parent, or null for root. -
getChildren
Description copied from interface:INode
List ofINode
children, in order. Empty list (non-null) for leaf nodes.- Specified by:
getChildren
in interfaceINode
-
setData
Set node data. -
setId
Set node id.- Parameters:
id
-
-
setParent
Set node parent.- Parameters:
parent
-
-
setChildren
Set node children.- Parameters:
children
-
-
addChild
Add child.- Parameters:
child
-- See Also:
-
removeChild
Remove child.- Parameters:
child
-- See Also:
-