|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.TreeNodeAdaptor
public class TreeNodeAdaptor
The TreeNodeAdaptor takes a NodeInterface and creates a TreeNodeAdaptor.
Node,
TreeNodeInterface,
Serialized Form| Field Summary | |
|---|---|
protected SimpleNodeInterface[] |
childArray
|
protected OrderedCollection |
children
|
protected NodeInterface |
node
|
protected SimpleNodeInterface[] |
returnArray
|
| Fields inherited from class com.sas.models.TreeNode |
|---|
accessKey, border, borderSize, 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 | |
|---|---|
TreeNodeAdaptor(NodeInterface node)
Constructor of TreeNodeAdaptor |
|
TreeNodeAdaptor(NodeInterface node,
java.lang.String name)
Constructor of TreeNodeAdaptor |
|
| Method Summary | |
|---|---|
void |
createChildArray()
createChildArray creates an arrary of the node's children. |
SimpleNodeInterface |
getNodeChild(int i)
getNodeChild returns the child at the specified index. |
int |
getNodeChildCount()
getNodeChildCount() returns the number of children the curent node has. |
SimpleNodeInterface[] |
getNodeChildren(int startIndex,
int count)
getNodeChildren returns the array of requested children of a node. |
| Methods inherited from interface com.sas.models.NodeInterface |
|---|
getNodeType |
| Methods inherited from interface com.sas.models.SimpleNodeInterface |
|---|
countNodeChildren, isLeafNode |
| Field Detail |
|---|
protected OrderedCollection children
protected NodeInterface node
protected SimpleNodeInterface[] returnArray
protected SimpleNodeInterface[] childArray
| Constructor Detail |
|---|
public TreeNodeAdaptor(NodeInterface node,
java.lang.String name)
node - a NodeInteface which is used to create the adapted nodename - the name of the TreeNodeAdaptorpublic TreeNodeAdaptor(NodeInterface node)
node - a NodeInteface which is used to create the adapted node| Method Detail |
|---|
public int getNodeChildCount()
getNodeChildCount in interface SimpleNodeInterfacegetNodeChildCount in class Nodepublic void createChildArray()
public SimpleNodeInterface getNodeChild(int i)
getNodeChild in interface SimpleNodeInterfacegetNodeChild in class Nodei - the 0-based index of the child to get
Node.getNodeChildren(int, int),
Node.setNodeChildren(com.sas.collection.StaticOrderedCollectionInterface)
public SimpleNodeInterface[] getNodeChildren(int startIndex,
int count)
getNodeChildren in interface SimpleNodeInterfacegetNodeChildren in class NodestartIndex - 0-based index which identifies the start of the rangecount - the amount of children to get
Node.getNodeChild(int),
Node.setNodeChildren(com.sas.collection.StaticOrderedCollectionInterface)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||