|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.sasserver.tree.ProgressiveLevelTreeNode
public class ProgressiveLevelTreeNode
ProgressiveLevelTreeNode creates ProgressiveLevelTreeNodes using the hlist which is created using server side TREE SCL.
TreeNode,
Serialized Form| Field Summary | |
|---|---|
protected int |
childCount
|
protected com.sas.collection.hlist.HListInterface |
childList
|
protected int |
childListIndex
|
protected com.sas.collection.hlist.HListInterface |
hlist
|
protected LevelTreeInterface |
m_remoteObject
|
protected SimpleNodeInterface[] |
nodeChildren
|
protected int |
nodeIndex
|
protected java.lang.String |
nodeKey
|
protected int |
nodeLevel
|
protected ProgressiveLevelTreeNode |
parent
|
protected int |
uncleIndex
|
protected boolean |
visible
|
| Fields inherited from class com.sas.models.TreeNode |
|---|
accessKey, border, borderSize, children, defaultImage, defaultImageAltText, description, expandedImage, expandedImageAltText, expandedState, lastNode, name, selectable, styleClass, styleKey, tabIndex, text, title, url |
| Fields inherited from class com.sas.models.Node |
|---|
defaultNodeStyle, expandedNodeText, externalUpdateSupported, hasChildren, nodeStyle, nodeText, nodeType, objectData, RB_KEY |
| Constructor Summary | |
|---|---|
ProgressiveLevelTreeNode(LevelTreeInterface m_remoteObject,
ProgressiveLevelTreeNode parent,
com.sas.collection.hlist.HListInterface hlist,
int childListIndex,
int nodeLevel)
Constructor. |
|
ProgressiveLevelTreeNode(ProgressiveLevelTreeNode parent,
com.sas.collection.hlist.HListInterface hlist,
int childListIndex,
int nodeLevel)
Constructor. |
|
| Method Summary | |
|---|---|
protected int |
findUncleIndex()
findUncleIndex returns the uncleIndex for a node. |
int |
getChildListIndex()
getChildListIndex returns the child list of a node. |
int |
getIndex()
getIndex returns the index for the node. |
java.lang.String |
getKey()
getKey returns the key for the node. |
int |
getLevel()
getLevel returns the level of the node. |
java.lang.String |
getNodeCellStyleKey()
getNodeCellStyleKey is over ridden from TreeNode to call getKey. |
SimpleNodeInterface |
getNodeChild(int childIndex)
getNodeChild returns the requested node child. |
int |
getNodeChildCount()
getNodeChildCount returns the number of children a node has. |
SimpleNodeInterface[] |
getNodeChildren(int childIndex,
int count)
getNodeChildren returns an array of nodes which are the chilren of the parent node. |
ProgressiveLevelTreeNode |
getParent()
getParent returns the parent of the current node. |
int |
getUncleIndex()
getUncleIndex returns the uncleIndex of the node. |
protected void |
initChildList()
initChildList initializes the list of children (childList) for a node. |
void |
initChildNodes()
initChildNodes initalizes the nodeChildren array, which holds the node children. |
protected void |
initTreeNode()
initTreeNode creates the TreeNode as they are requested. |
boolean |
isLeafNode()
isLeafNode determine if a node is a LeafNode, or has no children. |
void |
setChildListIndex(int childListIndex)
setChildListIndex sets the child list of a node. |
void |
setIndex(int nodeIndex)
setIndex sets the index for the node. |
void |
setKey(java.lang.String nodeKey)
setKey sets the key for the node. |
void |
setLevel(int nodeLevel)
setLevel sets the level for the node. |
void |
setNodeCellStyleKey(java.lang.String key)
setNodeCellStyleKey is over ridden from TreeNode to call setKey. |
void |
setParent(ProgressiveLevelTreeNode parent)
setParent sets the parent of the node. |
void |
setUncleIndex(int uncleIndex)
setUncleIndex sets the uncleIndex of the node. |
| Methods inherited from class com.sas.models.TreeNode |
|---|
getAcessKey, getDefaultImage, getDefaultImageAltText, getDescription, getExpandedImage, getExpandedImageAltText, getName, getNodeCellStyleClass, getNodeExpandedText, getNodeText, getRootNodeName, getTabIndex, getText, getTitle, getURL, isExpanded, isLastNode, setAccessKey, setDefaultImage, setDefaultImageAltText, setDescription, setExpanded, setExpandedImage, setExpandedImageAltText, setLastNode, setName, setNodeCellStyleClass, setTabIndex, setText, setTitle, setURL |
| Methods inherited from interface com.sas.models.NodeInterface |
|---|
getNodeType |
| Methods inherited from interface com.sas.models.SimpleNodeInterface |
|---|
countNodeChildren |
| Field Detail |
|---|
protected int childCount
protected int childListIndex
protected int uncleIndex
protected int nodeIndex
protected int nodeLevel
protected java.lang.String nodeKey
protected com.sas.collection.hlist.HListInterface childList
protected com.sas.collection.hlist.HListInterface hlist
protected LevelTreeInterface m_remoteObject
protected ProgressiveLevelTreeNode parent
protected boolean visible
protected SimpleNodeInterface[] nodeChildren
| Constructor Detail |
|---|
public ProgressiveLevelTreeNode(LevelTreeInterface m_remoteObject,
ProgressiveLevelTreeNode parent,
com.sas.collection.hlist.HListInterface hlist,
int childListIndex,
int nodeLevel)
m_remoteObject - LevelTreeInterfaceparent - the parent TreeNodehlist - HListInterfaceindex - index of the nodelevel - level of the node
public ProgressiveLevelTreeNode(ProgressiveLevelTreeNode parent,
com.sas.collection.hlist.HListInterface hlist,
int childListIndex,
int nodeLevel)
parent - the parent TreeNodehlist - HListInterfaceindex - index of the nodelevel - level of the node| Method Detail |
|---|
protected void initTreeNode()
public SimpleNodeInterface getNodeChild(int childIndex)
initChildNodes().
getNodeChild in interface SimpleNodeInterfacegetNodeChild in class NodechildIndex - the 0-based index of the child to get
Node.getNodeChildren(int, int),
Node.setNodeChildren(com.sas.collection.StaticOrderedCollectionInterface)public void initChildNodes()
protected int findUncleIndex()
protected void initChildList()
public SimpleNodeInterface[] getNodeChildren(int childIndex,
int count)
initChildNodes(). A
second array named children is created with only the children of the requesting node.
getNodeChildren in interface SimpleNodeInterfacegetNodeChildren in class NodechildIndex - int value of the begining child index which to retreive.count - int value of the number of children to return.
Node.getNodeChild(int),
Node.setNodeChildren(com.sas.collection.StaticOrderedCollectionInterface)public boolean isLeafNode()
isLeafNode in interface SimpleNodeInterfaceisLeafNode in class Nodepublic int getNodeChildCount()
getNodeChildCount in interface SimpleNodeInterfacegetNodeChildCount in class Nodepublic void setIndex(int nodeIndex)
nIndex - public int getIndex()
getIndex in interface StaticLevelNodeInterfacepublic void setLevel(int nodeLevel)
nLevel - public int getLevel()
getLevel in interface StaticLevelNodeInterfacepublic void setParent(ProgressiveLevelTreeNode parent)
parent - the parent of the current node.public ProgressiveLevelTreeNode getParent()
public void setUncleIndex(int uncleIndex)
uncleIndex - index of the node's parent's next siblingpublic int getUncleIndex()
public void setChildListIndex(int childListIndex)
childListIndex - public int getChildListIndex()
public void setKey(java.lang.String nodeKey)
key - public void setNodeCellStyleKey(java.lang.String key)
setNodeCellStyleKey in class TreeNodekey - public java.lang.String getKey()
public java.lang.String getNodeCellStyleKey()
getNodeCellStyleKey in interface StaticNodeCellStyleKeyInterfacegetNodeCellStyleKey in class TreeNode
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||