|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.tree.object.DefaultNode
public class DefaultNode
Default INode
implementation.
Field Summary | |
---|---|
protected List |
m_children
|
protected Object |
m_data
|
protected String |
m_id
|
protected INode |
m_parent
|
Constructor Summary | |
---|---|
DefaultNode()
Default 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 | |
---|---|
void |
addChild(INode child)
Add child. |
List |
getChildren()
List of INode children, in order. |
Object |
getData()
Row data. |
String |
getId()
Row id. |
INode |
getParent()
Node parent, or null for root. |
void |
removeChild(INode child)
Remove child. |
void |
setChildren(List children)
Set node children. |
void |
setData(Object data)
Set node data. |
void |
setId(String id)
Set node id. |
void |
setParent(INode parent)
Set node parent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object m_data
protected String m_id
protected INode m_parent
protected List m_children
Constructor Detail |
---|
public DefaultNode()
public DefaultNode(Object data)
data
- public DefaultNode(Object data, String id)
data
- id
- Method Detail |
---|
public Object getData()
INode
getData
in interface INode
public String getId()
INode
getId
in interface INode
public INode getParent()
INode
getParent
in interface INode
public List getChildren()
INode
INode
children, in order.
Empty list (non-null) for leaf nodes.
getChildren
in interface INode
public void setData(Object data)
public void setId(String id)
id
- public void setParent(INode parent)
parent
- public void setChildren(List children)
children
- public void addChild(INode child)
child
- List.add(Object)
public void removeChild(INode child)
child
- List.remove(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |