|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeNodeInterface
TreeNodeInterface is an interface for creating a tree node. These nodes can be used in the TreeModel used by the TreeView, which in turn can be used to display things such as organizational charts or other hierarchical structures.
TreeView
,
TreeNode
Method Summary | |
---|---|
java.lang.String |
getAccessKey()
Returns the accesskey for URL accessibility. |
java.lang.String |
getDefaultImage()
Returns the name of the default image. |
java.lang.String |
getDefaultImageAltText()
Returns 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 |
getDeselectNodeFunctionName()
Gets the name of a JavaScript function which will be called to deselect a node. |
java.lang.String |
getDisabledImage()
Returns the name of the image to be displayed when the node is disabled. |
java.lang.String |
getDisabledImageAltText()
getDisabledImageAltText returns the text which is to be used as alternate to an image. |
java.lang.String |
getExpandedImage()
Returns the name of the expanded image. |
java.lang.String |
getExpandedImageAltText()
Returns the alternate text to the expanded image. |
java.lang.String |
getImageLocation()
If present this property overrides the imageLocation property of the TreeView. |
java.lang.String |
getName()
Returns the name of the node. |
java.lang.String |
getPostSelectNodeFunctionName()
Gets the name of a user-supplied JavaScript function which will be called after the normal select behavior executes when a node is selected. |
java.lang.String |
getPreSelectNodeFunctionName()
Gets the name of a user-supplied JavaScript function which will be called prior to normal select behavior when a node is selected. |
java.lang.String |
getRendererFunctionName()
Gets the name of the JavaScript function which will be called to render a node. |
java.lang.String |
getSelectNodeFunctionName()
Gets the name of a JavaScript function which will be called to select a node. |
TreeNodeInterface |
getSourceParent()
Return the source parent of the node, which is the parent in a source tree where it originally came from if it was moved. |
java.lang.String |
getStyleClassPrefix()
If present this property overrides the styleClassPrefix property of the TreeView. |
int |
getTabIndex()
Returns the tab order value of the node. |
java.lang.String |
getTarget()
Returns the value of the target= argument used on the anchor tags generated. |
java.lang.String |
getText()
Returns the text associated with the node. |
java.lang.String |
getTitle()
Returns the title to the URL link in the viewer, usually shown as a tooltip. |
java.lang.String |
getURL()
Returns the url associated with the node. |
boolean |
isEnabled()
Get the enabled state of the node, which determines the icon and style used for the node. |
boolean |
isExpanded()
Returns the boolean value which indicates whether a node is expanded. |
boolean |
isLastNode()
Returns the boolean value which determines if a node is the last node in a set of children. |
void |
setAccessKey(java.lang.String accessKey)
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)
Sets the text which is to be used as alternate to an image. |
void |
setDescription(java.lang.String desc)
Sets the description associated with this node. |
void |
setDeselectNodeFunctionName(java.lang.String deselect)
Sets the name of a JavaScript function which will be called to deselect a node. |
void |
setDisabledImage(java.lang.String image)
Sets the name of the image to be displayed when the node is disabled. |
void |
setDisabledImageAltText(java.lang.String disabledImageAltText)
setDisabledImageAltText sets the alternate text to the disabled image in the viewer. |
void |
setEnabled(boolean enabled)
Set the enabled state of the node, which will change the icon and style used for a disabled node. |
void |
setExpanded(boolean expanded)
Sets the expanded state of the node. |
void |
setExpandedImage(java.lang.String Image)
Returns the name of the expanded image. |
void |
setExpandedImageAltText(java.lang.String expandedImageAltText)
Sets the alternate text to the expanded image in the viewer. |
void |
setImageLocation(java.lang.String imageLocation)
If present this property overrides the imageLocation property of the TreeView. |
void |
setLastNode(boolean lastNode)
Sets a flag 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 node object. |
void |
setPostSelectNodeFunctionName(java.lang.String postSelectFunctionName)
Sets the name of a user-supplied JavaScript function which will be called after the normal select behavior executes when a node is selected. |
void |
setPreSelectNodeFunctionName(java.lang.String preSelectFunctionName)
Sets the name of a user-supplied JavaScript function which will be called prior to normal select behavior when a node is selected. |
void |
setRendererFunctionName(java.lang.String renderer)
Sets the name of a JavaScript function which will be called to render a node. |
void |
setSelectNodeFunctionName(java.lang.String select)
Sets the name of a JavaScript function which will be called to select a node. |
void |
setSourceParent(TreeNodeInterface sourceParent)
Set the source parent of the node, which is the parent in a source tree where it originally came from if it was moved. |
void |
setStyleClassPrefix(java.lang.String styleClassPrefix)
If present this property overrides the styleClassPrefix property of the TreeView. |
void |
setTabIndex(int tabIndex)
Sets the tabbing order for access in viewer. |
void |
setTarget(java.lang.String target)
Sets the value of the target= argument used on the anchor tags generated. |
void |
setText(java.lang.String text)
Sets the text associated with the node. |
void |
setTitle(java.lang.String title)
Sets the title to the URL link in the viewer, usually shown as a tooltip. |
void |
setURL(java.lang.String url)
Sets the url associated with node. |
Methods inherited from interface com.sas.servlet.tbeans.models.NodeInterface |
---|
getNodeExpandedText, getNodeText, getNodeType |
Methods inherited from interface com.sas.servlet.tbeans.ComplexStyleInterface |
---|
getStyleMap |
Method Detail |
---|
java.lang.String getDefaultImage()
void setDefaultImage(java.lang.String Image)
image
- - the name of the default image.java.lang.String getExpandedImage()
void setExpandedImage(java.lang.String Image)
image
- the name of the expanded imagejava.lang.String getURL()
setURL(String)
,
BaseTreeView.setUsingURLLinks(boolean)
void setURL(java.lang.String url)
url
- the url link associated with the nodegetURL()
,
BaseTreeView.setUsingURLLinks(boolean)
void setText(java.lang.String text)
text
- the text string that is to be displayed next to the node.java.lang.String getText()
void setExpanded(boolean expanded)
expanded
- boolean value which determines if a node is expanded.boolean isExpanded()
void setName(java.lang.String name)
name
- string name of the node.java.lang.String getName()
void setLastNode(boolean lastNode)
lastNode
- boolean value lastNode, true if node is the lastNode, false otherwise.boolean isLastNode()
void setAccessKey(java.lang.String accessKey)
accessKey
- key entry used as access key for link.java.lang.String getAccessKey()
void setTabIndex(int tabIndex)
tabIndex
- the numeric order in which the tab key is used.int getTabIndex()
void setDefaultImageAltText(java.lang.String defaultImageAltText)
defaulImageAltText
- alternate text for the image displayed in the viewer.java.lang.String getDefaultImageAltText()
void setExpandedImageAltText(java.lang.String expandedImageAltText)
expandedImageAltText
- java.lang.String getExpandedImageAltText()
void setTitle(java.lang.String title)
title
- descriptive title of the URL link.java.lang.String getTitle()
void setDescription(java.lang.String desc)
desc
- The description of the nodejava.lang.String getDescription()
java.lang.String getTarget()
void setTarget(java.lang.String target)
void setSourceParent(TreeNodeInterface sourceParent)
TreeNodeInterface getSourceParent()
void setEnabled(boolean enabled)
boolean isEnabled()
java.lang.String getDisabledImage()
Image
- the URL for defaultImage.void setDisabledImage(java.lang.String image)
Image
- the URL for defaultImage.java.lang.String getDisabledImageAltText()
void setDisabledImageAltText(java.lang.String disabledImageAltText)
disabledImageAltText
- java.lang.String getRendererFunctionName()
setRendererFunctionName(String)
,
BaseTreeView.getNodeRendererFunctionName()
void setRendererFunctionName(java.lang.String renderer)
<script>
function nodeRenderer(node)
{
return node.text;
}
</script>
The returned value is set on the innerHTML of the HTML element.
In addition to the default node renderer,
one simple node renderer is provided which allows the node text to
include HTML.
It may be used by setting the node renderer as follows:
treenode.setRendererFunctionName("sas_TreeView_HTMLNodeRenderer");
the
- name of the JavaScript function to render a nodeBaseTreeView.setNodeRendererFunctionName(String)
java.lang.String getSelectNodeFunctionName()
setSelectNodeFunctionName(String)
,
BaseTreeView.getSelectNodeFunctionName()
void setSelectNodeFunctionName(java.lang.String select)
function selectNodeFunction(node,el)
{
if (node.text == "test";)
el.className = "selectedTestStyle";
else el.className = "selectedNormalStyle";
}
The first parameter is the node being selected.
The second parameter is the HTML element representing the node.
the
- name of the JavaScript function called when the node is selectedgetSelectNodeFunctionName()
,
BaseTreeView.setSelectNodeFunctionName(String)
java.lang.String getDeselectNodeFunctionName()
setDeselectNodeFunctionName(String)
,
BaseTreeView.getDeselectNodeFunctionName()
void setDeselectNodeFunctionName(java.lang.String deselect)
function deselectNodeFunction(node,el)
{
if (node.text == "test";)
el.className = "deselectedTestStyle";
else el.className = "deselectedNormalStyle";
}
The first parameter is the node being selected.
The second parameter is the HTML element representing the node.
the
- name of the JavaScript function called when the node is deselectedBaseTreeView.setDeselectNodeFunctionName(String)
java.lang.String getImageLocation()
BaseTreeView.getImageLocation()
void setImageLocation(java.lang.String imageLocation)
BaseTreeView.setImageLocation(String)
java.lang.String getStyleClassPrefix()
BaseTreeView.getStyleClassPrefix()
void setStyleClassPrefix(java.lang.String styleClassPrefix)
BaseTreeView.getStyleClassPrefix()
java.lang.String getPreSelectNodeFunctionName()
setPreSelectNodeFunctionName(String)
void setPreSelectNodeFunctionName(java.lang.String preSelectFunctionName)
function preSelectNodeFunction(node,el)
{
...some user-defined action;
return true;
}
The first parameter is the node being selected.
The second parameter is the HTML element representing the node.
the
- name of the JavaScript function called prior to normal select behavior when the node is selectedgetPreSelectNodeFunctionName()
java.lang.String getPostSelectNodeFunctionName()
setPreSelectNodeFunctionName(String)
void setPostSelectNodeFunctionName(java.lang.String postSelectFunctionName)
function postSelectNodeFunction(node,el)
{
...some user-defined action;
return true;
}
The first parameter is the node being selected.
The second parameter is the HTML element representing the node.
the
- name of the JavaScript function called prior to normal select behavior when the node is selectedgetPreSelectNodeFunctionName()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |