|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.servlet.tbeans.TreeViewTag
public class TreeViewTag
TreeViewTag is the tag handler class for the sas:TreeView custom tag . TreeViewTag is invoked by the JSP page to evaluate the sas:TreeView custom tag during the execution of the page. Tag handler methods are called by the JSP page implementation class at various points during the evaluation of the tag. The tag handler methods in turn call methods on the underlying Transformation Bean object, TreeView, to execute the methods.
If you need to extend or modify the functionality of the sas:TreeView custom tag, you can subclass this tag handler class.
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Refer to the Custom Tag Library Reference for usage information on the sas:TreeView custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site.
TreeNodeTag
,
BaseTreeView
,
TreeView
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.taglib.BaseBodyTag |
---|
DELIMITERS |
Constructor Summary | |
---|---|
TreeViewTag()
|
Method Summary | |
---|---|
protected void |
applyAttributes()
Sets the attributes on the underlying TreeView object. |
int |
doStartTag()
Process the start tag for this instance. |
java.lang.String |
getDeselectNodeFunctionName()
Gets the name of a JavaScript function which will be called to deselect a node. |
int |
getExpansionLevel()
getExpansionLevel detemines what level the tree will be expanded when render. |
java.lang.String |
getImageLocation()
getImageLocation returns the location of the images needed to construct the Tree. |
int |
getInitialExpansionLevel()
getInitialExpansionLevel detemines what level the tree will be expanded when render. |
java.lang.String |
getLineStyle()
Sets the line style used for the tree. |
java.lang.String |
getModel()
Gets the model property (String). |
java.lang.String |
getNodeLoading()
getNodeLoading returns the value of load_state which determines if the tree is written out all at once, or incrementally. |
java.lang.String |
getNodeRendererFunctionName()
Gets the name of the JavaScript function which will be called to render a node. |
java.lang.String |
getPostExpandNodeFunctionName()
Gets the name of a user-supplied JavaScript function which will be called after the node expands. |
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 |
getPreExpandNodeFunctionName()
Gets the name of a user-supplied JavaScript function which will be called prior to node expansion. |
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 |
getSelectedNode()
getSelectedNode returns the node which is to be 'selected' at initial rendering of the tree. |
java.lang.String |
getSelectedNodesModel()
Gets the selectedNodesModel property of the TreeViewTag. |
java.lang.String |
getSelectionMode()
Returns the selectionMode. |
java.lang.String |
getSelectNodeFunctionName()
Gets the name of a JavaScript function which will be called to select a node. |
java.lang.String |
getStyleClassPrefix()
getStyleClassPrefix returns the style class prefix set for a tree. |
java.lang.String |
getTarget()
Returns the value of the TARGET= argument used on the anchor tags generated. |
protected void |
initialize(boolean includeAttributes)
Initializes attributes and variables for this tag handler. |
boolean |
isAutoChildrenVerify()
Returns true if the autoChildrenCheckVerify is enabled, false otherwise. |
boolean |
isImageVisible()
isImageVisible returns a boolean value that determines if Images are visible next to the node text. |
boolean |
isRootNodeVisible()
isRootNodeVisible |
boolean |
isUsePlusMinus()
isUsePlusMinus returns the boolean value of plus_minus which determines if the +/- images are to be used on the tree. |
boolean |
isUsingURLLinks()
isUsingURLLinks returns a boolean value telling the TreeView whether or not to use the URL links set in the model. |
void |
setAutoChildrenVerify(boolean autoChildrenVerify)
Enables the auto children check. |
void |
setDeselectNodeFunctionName(java.lang.String deselectFunctionName)
Sets the name of a JavaScript function which will be called to deselect a node. |
void |
setExpansionLevel(int expansionLevel)
setExpansionLevel detemines what level the tree will be expanded when render. |
void |
setImageLocation(java.lang.String imageLocation)
setImageLocation the location of the images needed to construct the Tree. |
void |
setImageVisible(boolean imageVisible)
setImageVisible sets node images visibile. |
void |
setInitialExpansionLevel(int initialExpansionLevel)
setInitialExpansionLevel detemines what level the tree will be expanded when render. |
void |
setLineStyle(java.lang.String lineStyle)
Sets the line style used for the tree. |
void |
setModel(java.lang.String model)
Sets the model property (String). |
void |
setNodeLoading(java.lang.String load_state)
setNodeLoading determines if the tree is written out all at once or incrementally. |
void |
setNodeRendererFunctionName(java.lang.String string)
Sets the name of a JavaScript function which will be called to render a node. |
void |
setPostExpandNodeFunctionName(java.lang.String postExpandFunctionName)
Sets the name of a user-supplied JavaScript function which will be called after the node expands. |
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 |
setPreExpandNodeFunctionName(java.lang.String preExpandFunctionName)
Sets the name of a user-supplied JavaScript function which will be called prior to node expansion. |
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 |
setRootNodeVisible(boolean rootNodeVisible)
setRootNodeVisible set the rootnode visible. |
void |
setSelectedNode(java.lang.String selectedNode)
setSelectedNode sets the node that is to be 'selected', or highlighed upon initial rendering of the tree. |
void |
setSelectedNodesModel(java.lang.String selectedNodesModel)
* Sets the selectedNodesModel property (String). |
void |
setSelectionMode(java.lang.String selectionMode)
Sets the selectionMode. |
void |
setSelectNodeFunctionName(java.lang.String selectFunctionName)
Sets the name of a JavaScript function which will be called to select a node. |
void |
setStyleClassPrefix(java.lang.String styleClassPrefix)
setStyleClassPrefix sets the prefix for a style class. |
void |
setTarget(java.lang.String target)
Sets the value of the TARGET= argument used on the anchor tags generated. |
void |
setUsePlusMinus(boolean usePlusMinus)
setUsePlusMinus determines whether or not to use the +/- images on the tree. |
void |
setUsingURLLinks(boolean usingURLLinks)
setUsingURLLinks tells the TreeView whether or not to use the URL links set on the model. |
Methods inherited from class com.sas.taglib.servlet.tbeans.BaseTransformationBodyTag |
---|
doEndTag, getCustomAttributes, getEpilog, getLocale, getName, getObjectDataProperty, getProlog, getRender, getRenderType, setCustomAttributes, setEpilog, setLocale, setName, setObjectDataProperty, setProlog, setRender, setRenderType |
Methods inherited from class com.sas.taglib.BaseBodyTag |
---|
doCatch, doFinally, getApplyAttributes, getBodyStrings, getCompositeComponentKey, getInstantiate, getPageContext, getRef, getScope, getTagScope, getWrappedClassName, getWrappedObject, getWrappedObject, loadBeanInstance, newInstance, release, removeFromScope, searchContext, setApplyAttributes, setCompositeComponentKey, setInstantiate, setRef, setScope, setTagScope, setVariableWithinScope, setWrappedClassName, setWrappedObject, validate |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public TreeViewTag()
Method Detail |
---|
protected void initialize(boolean includeAttributes)
initialize
in class BaseTransformationBodyTag
includeAttributes
- Set to true if attributes are to be set to default values.public void setModel(java.lang.String model)
model
- the model Stringpublic java.lang.String getModel()
public void setNodeLoading(java.lang.String load_state)
String
- Determines if the tree is written all at once or incrementally.public java.lang.String getNodeLoading()
public void setImageVisible(boolean imageVisible)
style
- Boolean value if images are to be displayed.public boolean isImageVisible()
public java.lang.String getSelectionMode()
public void setSelectionMode(java.lang.String selectionMode)
selectionMode
- The selectionMode to setpublic void setImageLocation(java.lang.String imageLocation)
imageLocation
- The location of the needed imagespublic java.lang.String getImageLocation()
public void setTarget(java.lang.String target)
target
- Argument of each folders anchor tag.public java.lang.String getTarget()
public void setExpansionLevel(int expansionLevel)
level
- The expansion level of the tree.public int getExpansionLevel()
public void setInitialExpansionLevel(int initialExpansionLevel)
level
- The expansion level of the tree.public int getInitialExpansionLevel()
public void setUsePlusMinus(boolean usePlusMinus)
usePlusMinus
- Flag which determines whether or not to use the +/- images on the tree.public boolean isUsePlusMinus()
public void setSelectedNode(java.lang.String selectedNode)
selectedNode
- The selected node.public java.lang.String getSelectedNode()
public void setUsingURLLinks(boolean usingURLLinks)
usingURLLinks
- Boolean value which determines whether or not to use URL links.public boolean isUsingURLLinks()
public void setRootNodeVisible(boolean rootNodeVisible)
isRootVisible
- Boolean value to set if rootNode is visible.public boolean isRootNodeVisible()
public void setStyleClassPrefix(java.lang.String styleClassPrefix)
styleClassPrefix
- style prefix used for the TreeViewpublic java.lang.String getStyleClassPrefix()
setStyleClassPrefix(java.lang.String)
.
public void setLineStyle(java.lang.String lineStyle)
String
- Determines if lines in a PROGRESSIVE tree are
written using various images or with HTML.public java.lang.String getLineStyle()
String
- Determines if lines in a PROGRESSIVE tree are
written using various images or with HTML.public void setAutoChildrenVerify(boolean autoChildrenVerify)
setNodeLoading(java.lang.String)
is set to PROGRESSIVE.
autochildren
- autoChildrenVerifypublic boolean isAutoChildrenVerify()
setAutoChildrenVerify(boolean)
public void setSelectedNodesModel(java.lang.String selectedNodesModel)
selectedNodesModel
- The model of selected nodes specified in the TreeView.public java.lang.String getSelectedNodesModel()
public java.lang.String getSelectNodeFunctionName()
setSelectNodeFunctionName(String)
public void setSelectNodeFunctionName(java.lang.String selectFunctionName)
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()
public java.lang.String getDeselectNodeFunctionName()
setDeselectNodeFunctionName(String)
public void setDeselectNodeFunctionName(java.lang.String deselectFunctionName)
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 deselectedpublic java.lang.String getNodeRendererFunctionName()
setNodeRendererFunctionName(String)
public void setNodeRendererFunctionName(java.lang.String string)
<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:
treeview.setNodeRendererFunctionName("sas_TreeView_HTMLNodeRenderer");
the
- name of the JavaScript function to render a nodepublic java.lang.String getPreSelectNodeFunctionName()
setPreSelectNodeFunctionName(String)
public 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()
public java.lang.String getPostSelectNodeFunctionName()
setPostSelectNodeFunctionName(String)
public void setPostSelectNodeFunctionName(java.lang.String postSelectFunctionName)
function postSelectNodeFunction(node,el)
{
...some user-defined action;
}
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 after the normal select behavior when the node is selectedgetPostSelectNodeFunctionName()
public java.lang.String getPreExpandNodeFunctionName()
setPreExpandNodeFunctionName(String)
public void setPreExpandNodeFunctionName(java.lang.String preExpandFunctionName)
function preExpandNodeFunction(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 node expansiongetPreExpandNodeFunctionName()
public java.lang.String getPostExpandNodeFunctionName()
setPostExpandNodeFunctionName(String)
public void setPostExpandNodeFunctionName(java.lang.String postExpandFunctionName)
function postExpandNodeFunction(node,el)
{
...some user-defined action;
}
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 node expansion.getPostExpandNodeFunctionName()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseTransformationBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.BaseBodyTag.setInstantiate(boolean)
,
TagSupport.doStartTag()
protected void applyAttributes() throws javax.servlet.jsp.JspException
applyAttributes
in class BaseTransformationBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |