java.lang.Object | +--com.ibm.commerce.pa.beans.DynamicDataBeanImpl | +--com.ibm.commerce.pa.widget.beans.TreeNodeDataBean
This class represents a node in a tree of DataBeans which contains a DataBean.
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 |
---|
public static final java.lang.String COPYRIGHT
protected java.util.Vector children
protected DataBean dataElement
Constructor Detail |
---|
public TreeNodeDataBean()
Method Detail |
---|
public void addChild(TreeNodeDataBean child)
child
- com.ibm.commerce.beans.TreeNodepublic java.util.Enumeration children()
public void copy(DynamicDataBean ds)
copy
in interface
DynamicDataBean
copy
in class
DynamicDataBeanImpl
public boolean getAllowsChildren()
public TreeNodeDataBean getChildAt(int index)
index
- intpublic int getChildCount()
public DataBean getDataElement()
public int getIndex(TreeNodeDataBean child)
child
- com.ibm.commerce.beans.TreeNodepublic boolean isLeaf()
public void setDataElement(DataBean value)
value
- com.ibm.commerce.datatype.DsDatapublic void setDataElement(ListDataBean value)
value
- com.ibm.commerce.datatype.DsData