|
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 FormField 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 com.sas.models.SimpleNodeInterface[] |
nodeChildren
|
protected int |
nodeIndex
|
protected java.lang.String |
nodeKey
|
protected int |
nodeLevel
|
protected ProgressiveLevelTreeNode |
parent
|
protected int |
uncleIndex
|
protected boolean |
visible
|
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. |
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. |
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. |
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 com.sas.models.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 nodepublic 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 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()
protected int findUncleIndex()
protected void initChildList()
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 nodeIndex)
nIndex
- public int getIndex()
getIndex
in interface com.sas.models.StaticLevelNodeInterface
public void setLevel(int nodeLevel)
nLevel
- public int getLevel()
getLevel
in interface com.sas.models.StaticLevelNodeInterface
public 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 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 |