|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.sasserver.tree.LevelTreeNode
public class LevelTreeNode
LevelTreeNode creates TreeNodes using the hlist which is created using server side TREE SCL.
TreeNode,
Serialized Form| Field Summary | |
|---|---|
protected com.sas.collection.hlist.HListInterface |
hlist
|
protected int |
index
|
protected int |
level
|
protected int |
nIndex
|
protected java.lang.String |
nKey
|
protected int |
nLevel
|
protected SimpleNodeInterface[] |
nodeChildren
|
protected TreeNode |
parent
|
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 | |
|---|---|
LevelTreeNode(TreeNode parent,
com.sas.collection.hlist.HListInterface hlist,
int index,
int level)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
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 |
setIndex(int nIndex)
setIndex sets the index for the node. |
void |
setKey(java.lang.String nKey)
setKey sets the key for the node. |
void |
setLevel(int nLevel)
setLevel sets the level for the node. |
void |
setNodeCellStyleKey(java.lang.String key)
setNodeCellStyleKey is over ridden from TreeNode to call setKey. |
| 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 level
protected int index
protected int nLevel
protected int nIndex
protected java.lang.String nKey
protected com.sas.collection.hlist.HListInterface hlist
protected TreeNode parent
protected boolean visible
protected SimpleNodeInterface[] nodeChildren
| Constructor Detail |
|---|
public LevelTreeNode(TreeNode parent,
com.sas.collection.hlist.HListInterface hlist,
int index,
int level)
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()
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 nIndex)
nIndex - public int getIndex()
getIndex in interface StaticLevelNodeInterfacepublic void setLevel(int nLevel)
in - nLevelpublic int getLevel()
getLevel in interface StaticLevelNodeInterfacepublic void setKey(java.lang.String nKey)
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 | |||||||||||||