com.ibm.commerce.pa.widget.beans
Class TreeNodeDataBean

java.lang.Object
  com.ibm.commerce.pa.beans.DynamicDataBeanImpl
      com.ibm.commerce.pa.widget.beans.TreeNodeDataBean
All Implemented Interfaces:
CommandDataBean, DataBean, DynamicDataBean, InputDataBean, java.io.Serializable

public class TreeNodeDataBean
extends DynamicDataBeanImpl

This class represents a node in a tree of DataBeans which contains a DataBean.

See Also:
Serialized Form

Field Summary
protected java.util.Vector children
static java.lang.String COPYRIGHT
protected DataBean dataElement
Fields inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
constraintList, defaultWidget, errorCode, errorMessage, interfaceName, metaData, pageName, parent, parentName, requestProperties, scriptName
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
Constructor Summary
TreeNodeDataBean()
TreeNode constructor comment.
Method Summary
void addChild(TreeNodeDataBean child)
This method will add a child node to the current node
java.util.Enumeration children()
This method will return an Enumeration of all children for this node
void copy(DynamicDataBean ds)
copy method comment.
boolean getAllowsChildren()
This method identifies a node as willing to accept children
TreeNodeDataBean getChildAt(int index)
This method will return the child node at index i
int getChildCount()
This method will return the number of children for this node
DataBean getDataElement()
This method will return the underlying data source for this node
int getIndex(TreeNodeDataBean child)
This method will return the index of a particular child
boolean isLeaf()
This method will identify this node as a leaf node
void setDataElement(DataBean value)
This method will set the underlying data source for this node.
void setDataElement(ListDataBean value)
This method will set the underlying data source for this node.
Methods inherited from class com.ibm.commerce.pa.beans.DynamicDataBeanImpl
addConstraint, getCommandInterfaceName, getConstraintList, getDefaultWidget, getErrorCode, getErrorMessage, getMetaData, getPageName, getParent, getParentName, getRequestProperties, getScriptName, setCommandInterfaceName, setConstraintList, setDefaultWidget, setErrorCode, setErrorMessage, setMetaData, setPageName, setParent, setParentName, setRequestProperties, setScriptName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

children

protected java.util.Vector children

dataElement

protected DataBean dataElement
Constructor Detail

TreeNodeDataBean

public TreeNodeDataBean()
TreeNode constructor comment.
Method Detail

addChild

public void addChild(TreeNodeDataBean child)
This method will add a child node to the current node
Parameters:
child - com.ibm.commerce.beans.TreeNode

children

public java.util.Enumeration children()
This method will return an Enumeration of all children for this node
Returns:
Enumeration

copy

public void copy(DynamicDataBean ds)
copy method comment.
Specified by:
copy in interface DynamicDataBean
Specified by:
copy in class DynamicDataBeanImpl

getAllowsChildren

public boolean getAllowsChildren()
This method identifies a node as willing to accept children
Returns:
boolean

getChildAt

public TreeNodeDataBean getChildAt(int index)
This method will return the child node at index i
Parameters:
index - int
Returns:
com.ibm.commerce.beans.TreeNode

getChildCount

public int getChildCount()
This method will return the number of children for this node
Returns:
int

getDataElement

public DataBean getDataElement()
This method will return the underlying data source for this node
Returns:
com.ibm.commerce.datatype.DsData

getIndex

public int getIndex(TreeNodeDataBean child)
This method will return the index of a particular child
Parameters:
child - com.ibm.commerce.beans.TreeNode
Returns:
int

isLeaf

public boolean isLeaf()
This method will identify this node as a leaf node
Returns:
boolean

setDataElement

public void setDataElement(DataBean value)
This method will set the underlying data source for this node.
Parameters:
value - com.ibm.commerce.datatype.DsData

setDataElement

public void setDataElement(ListDataBean value)
This method will set the underlying data source for this node.
Parameters:
value - com.ibm.commerce.datatype.DsData

Feedback