java.lang.Object | +--com.ibm.commerce.pa.beans.DynamicDataBeanImpl | +--com.ibm.commerce.pa.widget.beans.TreeDataBean
This type was created in VisualAge.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT |
protected
int |
level |
protected
TreeNodeDataBean |
root |
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 | |
---|---|
TreeDataBean() TreeDataBean constructor comment. |
Method Summary | |
---|---|
void |
copy(
DynamicDataBean ds) copy method comment. |
TreeNodeDataBean |
getChild(
TreeNodeDataBean parent, int index) This method will return the child node at index given the parent node |
int |
getChildCount(
TreeNodeDataBean parent) This method will return the number of children at a given node |
int |
getIndexOfChild(
TreeNodeDataBean parent,
TreeNodeDataBean child) This method will return the index of a particular child given a parent |
int |
getLevel() This method was created in VisualAge. |
TreeNodeDataBean |
getRoot() This method will return the root node of the tree |
boolean |
isLeaf(
TreeNodeDataBean node) This method will determine if a particular node is a leaf node |
void |
setLevel(int newValue) This method was created in VisualAge. |
void |
setRoot(
TreeNodeDataBean root) This method will identify a node as the root of the tree |
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 TreeNodeDataBean root
protected int level
Constructor Detail |
---|
public TreeDataBean()
Method Detail |
---|
public void copy(DynamicDataBean ds)
copy
in interface
DynamicDataBean
copy
in class
DynamicDataBeanImpl
public TreeNodeDataBean getChild(TreeNodeDataBean parent, int index)
parent
- com.ibm.commerce.beans.TreeNodeindex
- intpublic int getChildCount(TreeNodeDataBean parent)
parent
- com.ibm.commerce.beans.TreeNodepublic int getIndexOfChild(TreeNodeDataBean parent, TreeNodeDataBean child)
parent
- com.ibm.commerce.beans.TreeNodechild
- com.ibm.commerce.beans.TreeNodepublic int getLevel()
public TreeNodeDataBean getRoot()
public boolean isLeaf(TreeNodeDataBean node)
node
- com.ibm.commerce.beans.TreeNodepublic void setLevel(int newValue)
newValue
- intpublic void setRoot(TreeNodeDataBean root)
root
- com.ibm.commerce.beans.TreeNode