|
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 FormField 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 com.sas.models.SimpleNodeInterface[] |
nodeChildren
|
protected com.sas.models.TreeNode |
parent
|
protected boolean |
visible
|
Constructor Summary | |
---|---|
LevelTreeNode(com.sas.models.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. |
com.sas.models.SimpleNodeInterface |
getNodeChild(int childIndex)
getNodeChild returns the requested node child. |
int |
getNodeChildCount()
getNodeChildCount returns the number of children a node has. |
com.sas.models.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. |
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 com.sas.models.TreeNode parent
protected boolean visible
protected com.sas.models.SimpleNodeInterface[] nodeChildren
Constructor Detail |
---|
public LevelTreeNode(com.sas.models.TreeNode parent, com.sas.collection.hlist.HListInterface hlist, int index, int level)
parent
- the parent TreeNodehlist
- HListInterfaceindex
- index of the nodelevel
- level of the nodeMethod Detail |
---|
protected void initTreeNode()
public com.sas.models.SimpleNodeInterface getNodeChild(int childIndex)
initChildNodes()
.
getNodeChild
in interface com.sas.models.SimpleNodeInterface
getNodeChild
in class com.sas.models.Node
childIndex
- the 0-based index of the child to get
Node.getNodeChildren(int, int)
,
Node.setNodeChildren(com.sas.collection.StaticOrderedCollectionInterface)
public void initChildNodes()
public com.sas.models.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 com.sas.models.SimpleNodeInterface
getNodeChildren
in class com.sas.models.Node
childIndex
- 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 com.sas.models.SimpleNodeInterface
isLeafNode
in class com.sas.models.Node
public int getNodeChildCount()
getNodeChildCount
in interface com.sas.models.SimpleNodeInterface
getNodeChildCount
in class com.sas.models.Node
public void setIndex(int nIndex)
nIndex
- public int getIndex()
getIndex
in interface com.sas.models.StaticLevelNodeInterface
public void setLevel(int nLevel)
in
- nLevelpublic int getLevel()
getLevel
in interface com.sas.models.StaticLevelNodeInterface
public void setKey(java.lang.String nKey)
key
- public void setNodeCellStyleKey(java.lang.String key)
setNodeCellStyleKey
in class com.sas.models.TreeNode
key
- public java.lang.String getKey()
public java.lang.String getNodeCellStyleKey()
getNodeCellStyleKey
in interface com.sas.models.StaticNodeCellStyleKeyInterface
getNodeCellStyleKey
in class com.sas.models.TreeNode
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |