|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.TreeNode
public class TreeNode
The TreeNode model creates nodes that can be used to create a hierarchical structure. The rootNode can be used in the Tree model, which in turn can be used to display things such as organizational charts or other hierarchical structures.
Node,
TreeNodeInterface,
Serialized Form| Field Summary | |
|---|---|
protected java.lang.String |
accessKey
|
protected boolean |
border
|
protected int |
borderSize
|
protected OrderedCollection |
children
|
protected java.lang.String |
defaultImage
|
protected java.lang.String |
defaultImageAltText
|
protected java.lang.String |
description
|
protected java.lang.String |
expandedImage
|
protected java.lang.String |
expandedImageAltText
|
protected boolean |
expandedState
|
protected boolean |
lastNode
|
protected java.lang.String |
name
|
protected boolean |
selectable
|
protected java.lang.String |
styleClass
|
protected java.lang.String |
styleKey
|
protected int |
tabIndex
|
protected java.lang.String |
text
|
protected java.lang.String |
title
|
protected java.lang.String |
url
|
| Fields inherited from class com.sas.models.Node |
|---|
defaultNodeStyle, expandedNodeText, externalUpdateSupported, hasChildren, nodeStyle, nodeText, nodeType, objectData, RB_KEY |
| Constructor Summary | |
|---|---|
TreeNode()
|
|
TreeNode(java.lang.String name,
java.lang.String text)
Constructor of TreeNode |
|
TreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url)
Constructor of TreeNode |
|
TreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url,
java.lang.String defaultImage,
java.lang.String expandedImage)
Constructor of TreeNode |
|
| Method Summary | |
|---|---|
java.lang.String |
getAcessKey()
getAccessKey returns the accesskey for URL accessability. |
java.lang.String |
getDefaultImage()
Returns the name of the default image. |
java.lang.String |
getDefaultImageAltText()
getDefaultImageAltText reutrns the text which is to be used as alternate to an image. |
java.lang.String |
getDescription()
Returns the description of this node. |
java.lang.String |
getExpandedImage()
Returns the name of the expanded image. |
java.lang.String |
getExpandedImageAltText()
getExpandedImageAltText returns the alternate text to the expanded image. |
java.lang.String |
getName()
Returns the name of the TreeNode object |
java.lang.String |
getNodeCellStyleClass()
getNodeStyleClass |
java.lang.String |
getNodeCellStyleKey()
getNodeStyleKey returns the key to be associated with style values in some viewers. |
java.lang.String |
getNodeExpandedText()
getNodeExpandedText returns the URL used for the node. |
java.lang.String |
getNodeText()
Returns the node Text associated with the node. |
java.lang.String |
getRootNodeName()
Returns then name of the Root Node |
int |
getTabIndex()
getTabIndex returns the tab order value of the node. |
java.lang.String |
getText()
Returns the text displayed for the node |
java.lang.String |
getTitle()
getTitle returns the title to the URL link. |
java.lang.String |
getURL()
Returns the url associated with the node |
boolean |
isExpanded()
Returns the expandedState boolean value which is determines if a node is initially set expanded when rendered. |
boolean |
isLastNode()
Returns the boolean value lastNode which determines if a node is the last node in a set of children. |
void |
setAccessKey(java.lang.String accessKey)
setAccessKey sets the accesskey if a URL link is being used. |
void |
setDefaultImage(java.lang.String image)
Sets the name of the default image. |
void |
setDefaultImageAltText(java.lang.String defaultImageAltText)
setDefaultImageAltText sets the text used to describe an image in the viewer. |
void |
setDescription(java.lang.String desc)
Sets the description associated with this node. |
void |
setExpanded(boolean state)
sets the expandedState of the node |
void |
setExpandedImage(java.lang.String image)
Sets the name of the expanded image. |
void |
setExpandedImageAltText(java.lang.String expandedImageAltText)
setExpandedImageAltText sets the alternate text to the expanded image in the viewer. |
void |
setLastNode(boolean lastNode)
Sets the boolean value lastNode to determine if a node is the last node of a set of children. |
void |
setName(java.lang.String name)
Sets the name of the tree node. |
void |
setNodeCellStyleClass(java.lang.String styleClass)
setNodeStyle sets the style Class on the node. |
void |
setNodeCellStyleKey(java.lang.String styleKey)
setNodeStyleKey sets the key for the node which can be used to associate the node with styles in some viewers. |
void |
setTabIndex(int tabIndex)
setTabIndex sets the tabbing order for access in viewer. |
void |
setText(java.lang.String text)
Sets the text displayed for the node. |
void |
setTitle(java.lang.String title)
setTitle sets the title to the URL link in the viewer. |
void |
setURL(java.lang.String url)
Sets the url associated with the node |
| Methods inherited from interface com.sas.models.NodeInterface |
|---|
getNodeType |
| Methods inherited from interface com.sas.models.SimpleNodeInterface |
|---|
countNodeChildren, getNodeChild, getNodeChildCount, getNodeChildren, isLeafNode |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.String text
protected java.lang.String url
protected java.lang.String title
protected java.lang.String accessKey
protected java.lang.String defaultImage
protected java.lang.String expandedImage
protected java.lang.String expandedImageAltText
protected java.lang.String defaultImageAltText
protected OrderedCollection children
protected boolean expandedState
protected boolean lastNode
protected boolean border
protected boolean selectable
protected int borderSize
protected int tabIndex
protected java.lang.String styleKey
protected java.lang.String styleClass
protected java.lang.String description
| Constructor Detail |
|---|
public TreeNode()
public TreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url,
java.lang.String defaultImage,
java.lang.String expandedImage)
name - the name of the TreeNode object that is createdtext - the text to display in treeurl - the url to associate with the nodedefaultImage - the image to display when folder is closedexpandedImage - the image to display when folder is open
public TreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url)
name - the name of the TreeNode object that is createdtext - the text to display in treeurl - the url to associate with the node
public TreeNode(java.lang.String name,
java.lang.String text)
name - the name of the TreeNode object that is createdtext - the text to displayed in tree| Method Detail |
|---|
public java.lang.String getName()
getName in interface TreeNodeInterfacepublic void setName(java.lang.String name)
setName in interface TreeNodeInterfacename - the name of the TreeNodepublic void setExpanded(boolean state)
setExpanded in interface TreeNodeInterfacestate - the expanded state of the nodepublic boolean isExpanded()
isExpanded in interface TreeNodeInterfacepublic java.lang.String getText()
getText in interface TreeNodeInterfacepublic java.lang.String getNodeText()
getNodeText in interface NodeInterfacegetNodeText in class NodeNode.setNodeText(java.lang.String)public void setText(java.lang.String text)
setText in interface TreeNodeInterfacetext - the text displayed on the nodepublic java.lang.String getURL()
getURL in interface TreeNodeInterfacepublic java.lang.String getNodeExpandedText()
getNodeExpandedText in interface NodeInterfacegetNodeExpandedText in class NodeNode.setNodeExpandedText(java.lang.String)public void setURL(java.lang.String url)
setURL in interface TreeNodeInterfaceurl - the url link associated with the nodepublic java.lang.String getDefaultImage()
getDefaultImage in interface TreeNodeInterfacepublic void setDefaultImage(java.lang.String image)
setDefaultImage in interface TreeNodeInterfaceimage - - the name of the default image.public java.lang.String getExpandedImage()
getExpandedImage in interface TreeNodeInterfacepublic void setExpandedImage(java.lang.String image)
setExpandedImage in interface TreeNodeInterfaceimage - - the name of the expanded image.public java.lang.String getRootNodeName()
public void setLastNode(boolean lastNode)
setLastNode in interface TreeNodeInterfacelastNode - boolean value lastNode, true if node is the lastNode, false otherwise.public boolean isLastNode()
isLastNode in interface TreeNodeInterfacepublic void setNodeCellStyleClass(java.lang.String styleClass)
public java.lang.String getNodeCellStyleClass()
getNodeCellStyleClass in interface StaticNodeCellStyleInterfacepublic void setNodeCellStyleKey(java.lang.String styleKey)
public java.lang.String getNodeCellStyleKey()
getNodeCellStyleKey in interface StaticNodeCellStyleKeyInterfacepublic void setAccessKey(java.lang.String accessKey)
setAccessKey in interface TreeNodeV2InterfaceaccessKey - key entry used as access key for link.public java.lang.String getAcessKey()
getAcessKey in interface TreeNodeV2Interfacepublic void setTabIndex(int tabIndex)
setTabIndex in interface TreeNodeV2InterfacetabIndex - the numeric order in which the tab key is used.public int getTabIndex()
getTabIndex in interface TreeNodeV2Interfacepublic void setDefaultImageAltText(java.lang.String defaultImageAltText)
setDefaultImageAltText in interface TreeNodeV2InterfacedefaulImageAltText - alternate text for the image displayed in the viewer.public java.lang.String getDefaultImageAltText()
getDefaultImageAltText in interface TreeNodeV2Interfacepublic void setExpandedImageAltText(java.lang.String expandedImageAltText)
setExpandedImageAltText in interface TreeNodeV2InterfaceexpandedImageAltText - public java.lang.String getExpandedImageAltText()
getExpandedImageAltText in interface TreeNodeV2Interfacepublic void setTitle(java.lang.String title)
setTitle in interface TreeNodeV2Interfacetitle - descriptive title of the URL link.public java.lang.String getTitle()
getTitle in interface TreeNodeV2Interfacepublic void setDescription(java.lang.String desc)
setDescription in interface TreeNodeV2Interfacedesc - The description of the nodepublic java.lang.String getDescription()
getDescription in interface TreeNodeV2Interface
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||