com.sas.servlet.tbeans.html
Class TreeView

com.sas.servlet.tbeans.html.TreeView
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, ComplexStyleInterface, FormViewInterface, TreeViewStyleKeysInterface, com.sas.servlet.tbeans.JavaScriptEventHandlerInterface, RenderableInterface, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable

public class TreeView
implements ComplexStyleInterface, TreeViewStyleKeysInterface, FormViewInterface, com.sas.servlet.tbeans.JavaScriptEventHandlerInterface

The TreeView is a TransformationBean™ that generates the appropriate HTML 4.0 and JavaScript to represent a tree. You can use TreeView beans in a Java servlet or in a JSP scriplet. The TreeView uses a javax.swing.tree.TreeModel which should contain TreeNode tbeans for best performance. Objects of other types are also supported in the TreeModel by transforming them into tbean TreeNodes, with the default transform simply setting the tbean TreeNode text to the result of the calling toString() on the object in the model.

Most of the properties used for a TreeView are inherited from BaseTreeView

The TreeView is one of several TransformationBeans™ that rely on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to this TransformationBean™, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans™ as well as the TransformationBeans™ Style Sheet Reference.

The TreeView is one of several TransformationBeans™ that rely on JavaScript to provide some of its functionality. These JavaScript files are including automatically by the tbean. See JavaScriptIncludeHandler for more information about how these files are included and how to customize this behavior. The TreeView uses the following JavaScript files:

sas_treeview.js

Note that the toString() method on this class calls the write method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging

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/.

Examples for this class may be found on the Examples Site.

JSP custom tags provide an alternative to using the TransformationBeans™. Visit the Custom Tag Library Reference for additional 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 .

Since:
3.1
See Also:
BaseTreeView, TreeNode, JDBCToTreeViewModelAdapter, TreeViewTag, Serialized Form

Field Summary
static int AJAX
          Remote scripting constant for loading expanded tree nodes into the page using AJAX remote scripting.
static int IFRAME
          Remote scripting constant for loading expanded tree nodes into the page using IFRAME remote scripting.
 
Fields inherited from class com.sas.servlet.tbeans.BaseTreeView
CHECKBOX_LEAF_SELECTION, CHECKBOX_SELECTION, CLOSED_FOLDER, COMPLEX_INDICATOR_SELECTION, defaultImageMap, DISABLED_FOLDER, FIRST_NODE, IMAGE, imageLocation, INDICATOR_ALL_CHILDREN, INDICATOR_NO_CHILDREN, INDICATOR_SELF_ALL_CHILDREN, INDICATOR_SELF_NO_CHILDREN, INDICATOR_SELF_SOME_CHILDREN, INDICATOR_SOME_CHILDREN, LAST_NODE, LEAF_ICON, MINUS_LAST_NODE, MINUS_NODE, MINUS_ONLY_NODE, MISSING_ROOT_MINUS_NODE, MISSING_ROOT_PLUS_NODE, MULTIPLE_SELECTION, NO_SELECTION, NODE, NOIMAGE, OPEN_FOLDER, PLUS_LAST_NODE, PLUS_NODE, PLUS_ONLY_NODE, RADIO_LEAF_SELECTION, RADIO_SELECTION, SINGLE_REQUIRED_SELECTION, SINGLE_SELECTION, TRISTATE_SELECTION, VERTICAL_LINE
 
Fields inherited from interface com.sas.servlet.tbeans.html.TreeViewStyleKeysInterface
TREEVIEW_BACKGROUND_IMAGE, TREEVIEW_BACKGROUND_IMAGE1, TREEVIEW_CURSOR_HAND, TREEVIEW_DESCRIPTION, TREEVIEW_DISABLED, TREEVIEW_DIV_IMAGE_SPACE, TREEVIEW_FLOAT, TREEVIEW_IMAGE, TREEVIEW_IMAGE_SPACE, TREEVIEW_LINK, TREEVIEW_LINKACTIVE, TREEVIEW_PANE, TREEVIEW_SELECTED, TREEVIEW_TABLE, TREEVIEW_TEXT
 
Constructor Summary
TreeView()
          Default constructor for the TreeView.
TreeView(java.lang.String name)
          Constructor which creates a new TreeView with associated name.
TreeView(java.lang.String name, boolean urlLinks, boolean usePlusMinus, boolean nodeSelection, int expansionLevel, int nodeLoading, boolean imageVisible, java.lang.String styleClassPrefix)
          Constructor which creates a new TreeView with many properties provided as parameters.
 
Method Summary
protected  java.lang.StringBuffer addDivExpansionLink(java.lang.StringBuffer imageTemplate, java.lang.String nodeName)
           
protected  java.lang.StringBuffer addDivFolderImageTag(java.lang.StringBuffer imageTemplate, TreeNodeInterface node)
           
protected  void addDivLink(java.lang.StringBuffer tableString, TreeNodeInterface node)
           
protected  void addDivNode(java.lang.StringBuffer tableString, TreeNodeInterface node, java.lang.String addOns, TreeNodeInterface parentNode, TreeNodeInterface rootOfTree, boolean firstChild)
           
protected  void addDivNodeImage(java.lang.StringBuffer tableString, TreeNodeInterface node, java.lang.String plusMinusLink)
           
protected  void addDivPlusMinusImage(java.lang.StringBuffer tableString, TreeNodeInterface node, TreeNodeInterface parentNode, TreeNodeInterface rootOfTree, boolean firstChild, java.lang.String plusMinusLink)
           
protected  void addDivText(java.lang.StringBuffer tableString, TreeNodeInterface node)
           
protected  java.lang.StringBuffer addDivTextSpan(java.lang.StringBuffer tableString, TreeNodeInterface node)
           
protected  void addPlusMinusImage(java.lang.StringBuffer tableString, java.lang.String plusMinusLink, java.lang.String img, java.lang.String imgKey)
           
protected  void addPlusMinusImageCommon(java.lang.StringBuffer tableString, java.lang.String plusMinusLink, java.lang.String img, java.lang.String imgKey)
           
protected  void addPlusMinusImageTop(java.lang.StringBuffer tableString, java.lang.String plusMinusLink, java.lang.String img, java.lang.String imgKey)
           
protected  java.lang.StringBuffer createIconConnector(java.lang.StringBuffer nodeTemplate, boolean vLine, java.lang.String vLineColor, boolean row1, boolean firstChild, int numRows)
           
protected  java.lang.String createPlusMinus(boolean vLine, java.lang.String nImage, java.lang.String nImageKey, boolean vLine2, boolean hLine, java.lang.String addOns, java.lang.String nodeName, java.lang.String altText, boolean enabled, int numRows)
          Create the node, a table with one row with columns for the addOns/onTheLeft, plus/minus icon, and the horizontal line before the node icon.
protected  java.lang.StringBuffer createPlusMinusConnector(java.lang.StringBuffer nodeTemplate, boolean vLine, java.lang.String vLineColor, java.lang.String nImage, java.lang.String nImageKey, int numRows)
           
protected  java.lang.StringBuffer createPlusMinusIconConnector(java.lang.StringBuffer nodeTemplate, boolean hLine, java.lang.String hLineColor, java.lang.String nImage, java.lang.String nImageKey)
           
protected  java.lang.StringBuffer createPlusMinusImage(java.lang.StringBuffer nodeTemplate, java.lang.String nImage, java.lang.String nImageKey, java.lang.String nodeName, java.lang.String altText, boolean enabled)
           
 void expandNode(TreeNodeInterface node, int currentLevel, int maxLevel)
           
 java.util.HashMap getAdditionalParameters()
          Returns an HashMap containing additional parameters that should be added to the form used to perform the various actions on the TreeView when nodeLoading is PROGRESSIVE.
 Form getDefaultFormObject()
          Gets the default form object to be used by this TreeView.
protected  java.lang.String getDivAddOns(TreeNodeInterface node, java.lang.String addOns, TreeNodeInterface parentNode, TreeNodeInterface rootOfTree)
           
protected  java.lang.String getDivHTMLTreeTextImage(java.lang.String toLookFor, java.lang.String PMLink, TreeNodeInterface node, java.lang.String addOns, TreeNodeInterface parentNode, TreeNodeInterface rootOfTree, boolean firstChild, java.lang.String selectedNode)
           
protected  java.lang.String getDivHTMLTreeTextNoImage(java.lang.String toLookFor, java.lang.String PMLink, TreeNodeInterface node, java.lang.String addOns, TreeNodeInterface parentNode, TreeNodeInterface rootOfTree, boolean firstChild, java.lang.String selectedNode)
           
 Form getFormObject()
          Gets the form object to be used by this TreeView.
 java.util.Map getStyleMap()
          Returns a Map that contains all the Style information for a component
static boolean getThreadLocalTrimURL()
          Not intended for public use.
 com.sas.servlet.tbeans.html.TreeView.TreeNodeTransform getTransform()
          Gets the transform used to convert a node from in a TreeModel into a tree node for use by this treeView.
 boolean isDelayExecutionEnabled()
          Determines whether the TreeView should delay execution of its JavaScript.
 boolean isFormEnabled()
          Determines if the tbean should render its formObject.
 boolean isRenderUsingDivs()
          Determines whether the TreeView should render using div tags instead of TABLE tags.
 void setAdditionalParameter(java.lang.String name, java.lang.String value)
          Sets an additional parameter to be added to the form used to perform the various actions on the TreeView when nodeLoading is PROGRESSIVE.
 void setAdditionalParameters(java.util.HashMap map)
          Sets an HashMap containing additional parameters that should be added to the form used to perform the various actions on the TreeView when nodeLoading is PROGRESSIVE.
 void setDelayExecutionEnabled(boolean enabled)
          Sets whether the TreeView should delay execution of its JavaScript.
 void setFormEnabled(boolean enabled)
          Sets whether the tbean should render its formObject.
 void setFormObject(Form form)
          Sets the form object to be used by this TreeView.
 void setRenderUsingDivs(boolean enabled)
          Sets whether the TreeView should render using div tags instead of TABLE tags.
static void setThreadLocalTrimURL(boolean value)
          Not intended for public use.
 void setTransform(com.sas.servlet.tbeans.html.TreeView.TreeNodeTransform transform)
          Sets the transform to be used to convert a node from in a TreeModel into a tree node for use by this treeView
static void sort(javax.swing.tree.MutableTreeNode node, java.util.Comparator comparator)
          Sort the nodes in a tree.
 void write(java.io.PrintWriter out)
          Writes out either the JavaScript code or the HTML code to display the tree.
 
Methods inherited from class com.sas.servlet.tbeans.BaseTreeView
getDeselectNodeFunctionName, getExpansionLevel, getImageLocation, getImageMap, getInitialExpansionLevel, getLevelCellStyle, getLineStyle, getModel, getMultipleSelections, getNodeLoading, getNodeRendererFunctionName, getPostExpandNodeFunctionName, getPostSelectNodeFunctionName, getPreExpandNodeFunctionName, getPreSelectNodeFunctionName, getSelectedNode, getSelectedNodes, getSelectionMode, getSelectNodeFunctionName, getStyleClassPrefix, getTarget, isAutoChildrenVerify, isCheckboxSelectionMode, isFolderExpandCollapseEnabled, isImageVisible, isNodeSelectionVisible, isOnlyLeavesSelectable, isRootNodeVisible, isSelectionRequired, isUsePlusMinus, isUsingURLLinks, setAutoChildrenVerify, setDeselectNodeFunctionName, setExpansionLevel, setFolderExpandCollapseEnabled, setImageLocation, setImageVisible, setInitialExpansionLevel, setLineStyle, setNodeLoading, setNodeRendererFunctionName, setPostExpandNodeFunctionName, setPostSelectNodeFunctionName, setPreExpandNodeFunctionName, setPreSelectNodeFunctionName, setRootNodeVisible, setSelectedNode, setSelectedNodes, setSelectionMode, setSelectNodeFunctionName, setStyleClassPrefix, setTarget, setUsePlusMinus, setUsingURLLinks
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getName, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCleanUpResourcesOn, setCustomAttributes, setDescription, setId, setInputTransform, setLocale, setLocaleDependentProperties, setName, setObjectData, setObjectDataProperty, setOutputTransform, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 

Field Detail

IFRAME

public static final int IFRAME
Remote scripting constant for loading expanded tree nodes into the page using IFRAME remote scripting.

See Also:
setRemoteScripting(int), Constant Field Values

AJAX

public static final int AJAX
Remote scripting constant for loading expanded tree nodes into the page using AJAX remote scripting.

See Also:
setRemoteScripting(int), Constant Field Values
Constructor Detail

TreeView

public TreeView()
Default constructor for the TreeView.


TreeView

public TreeView(java.lang.String name)
Constructor which creates a new TreeView with associated name.

Parameters:
name - The name of the TreeView

TreeView

public TreeView(java.lang.String name,
                boolean urlLinks,
                boolean usePlusMinus,
                boolean nodeSelection,
                int expansionLevel,
                int nodeLoading,
                boolean imageVisible,
                java.lang.String styleClassPrefix)
Constructor which creates a new TreeView with many properties provided as parameters.

Parameters:
name - The name of the TreeView
urlLinks - boolean value if URL links are to be used.
usePlusMinus - boolean value determines if the plus/minus signs are to be displayed.
nodeSelection - boolean value determines if the node selection is visible.
int - expansionLevel determines at what level the tree is initially expanded.
nodeLoading - int value determines if node loading should be full or progressive.
imageVisible - boolean determines if the tree images are to be displayed.
styleClassPrefix - String value that determines the prefix to the style class.
Method Detail

setThreadLocalTrimURL

public static void setThreadLocalTrimURL(boolean value)
Not intended for public use.

Parameters:
value -

getThreadLocalTrimURL

public static boolean getThreadLocalTrimURL()
Not intended for public use.


write

public void write(java.io.PrintWriter out)
           throws java.io.IOException
Writes out either the JavaScript code or the HTML code to display the tree.

Specified by:
write in interface TransformationInterface
Specified by:
write in interface com.sas.util.WriteToPrintWriterInterface
Overrides:
write in class BaseTransformation
Parameters:
out - The printWriter to be written to.
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

expandNode

public void expandNode(TreeNodeInterface node,
                       int currentLevel,
                       int maxLevel)

getDivAddOns

protected java.lang.String getDivAddOns(TreeNodeInterface node,
                                        java.lang.String addOns,
                                        TreeNodeInterface parentNode,
                                        TreeNodeInterface rootOfTree)

getDivHTMLTreeTextNoImage

protected java.lang.String getDivHTMLTreeTextNoImage(java.lang.String toLookFor,
                                                     java.lang.String PMLink,
                                                     TreeNodeInterface node,
                                                     java.lang.String addOns,
                                                     TreeNodeInterface parentNode,
                                                     TreeNodeInterface rootOfTree,
                                                     boolean firstChild,
                                                     java.lang.String selectedNode)

addDivNode

protected void addDivNode(java.lang.StringBuffer tableString,
                          TreeNodeInterface node,
                          java.lang.String addOns,
                          TreeNodeInterface parentNode,
                          TreeNodeInterface rootOfTree,
                          boolean firstChild)

createPlusMinus

protected java.lang.String createPlusMinus(boolean vLine,
                                           java.lang.String nImage,
                                           java.lang.String nImageKey,
                                           boolean vLine2,
                                           boolean hLine,
                                           java.lang.String addOns,
                                           java.lang.String nodeName,
                                           java.lang.String altText,
                                           boolean enabled,
                                           int numRows)
Create the node, a table with one row with columns for the addOns/onTheLeft, plus/minus icon, and the horizontal line before the node icon. The plus/minus icon column is a table with 3 rows, controlled by vLine, nImage, and vLine2. This method leaves with the table tag and row tag not yet closed.


createPlusMinusConnector

protected java.lang.StringBuffer createPlusMinusConnector(java.lang.StringBuffer nodeTemplate,
                                                          boolean vLine,
                                                          java.lang.String vLineColor,
                                                          java.lang.String nImage,
                                                          java.lang.String nImageKey,
                                                          int numRows)

createPlusMinusImage

protected java.lang.StringBuffer createPlusMinusImage(java.lang.StringBuffer nodeTemplate,
                                                      java.lang.String nImage,
                                                      java.lang.String nImageKey,
                                                      java.lang.String nodeName,
                                                      java.lang.String altText,
                                                      boolean enabled)

addDivExpansionLink

protected java.lang.StringBuffer addDivExpansionLink(java.lang.StringBuffer imageTemplate,
                                                     java.lang.String nodeName)

createPlusMinusIconConnector

protected java.lang.StringBuffer createPlusMinusIconConnector(java.lang.StringBuffer nodeTemplate,
                                                              boolean hLine,
                                                              java.lang.String hLineColor,
                                                              java.lang.String nImage,
                                                              java.lang.String nImageKey)

createIconConnector

protected java.lang.StringBuffer createIconConnector(java.lang.StringBuffer nodeTemplate,
                                                     boolean vLine,
                                                     java.lang.String vLineColor,
                                                     boolean row1,
                                                     boolean firstChild,
                                                     int numRows)

addDivFolderImageTag

protected java.lang.StringBuffer addDivFolderImageTag(java.lang.StringBuffer imageTemplate,
                                                      TreeNodeInterface node)

addDivText

protected void addDivText(java.lang.StringBuffer tableString,
                          TreeNodeInterface node)

addDivTextSpan

protected java.lang.StringBuffer addDivTextSpan(java.lang.StringBuffer tableString,
                                                TreeNodeInterface node)

addDivLink

protected void addDivLink(java.lang.StringBuffer tableString,
                          TreeNodeInterface node)

getDivHTMLTreeTextImage

protected java.lang.String getDivHTMLTreeTextImage(java.lang.String toLookFor,
                                                   java.lang.String PMLink,
                                                   TreeNodeInterface node,
                                                   java.lang.String addOns,
                                                   TreeNodeInterface parentNode,
                                                   TreeNodeInterface rootOfTree,
                                                   boolean firstChild,
                                                   java.lang.String selectedNode)

addDivNodeImage

protected void addDivNodeImage(java.lang.StringBuffer tableString,
                               TreeNodeInterface node,
                               java.lang.String plusMinusLink)

addDivPlusMinusImage

protected void addDivPlusMinusImage(java.lang.StringBuffer tableString,
                                    TreeNodeInterface node,
                                    TreeNodeInterface parentNode,
                                    TreeNodeInterface rootOfTree,
                                    boolean firstChild,
                                    java.lang.String plusMinusLink)

addPlusMinusImageTop

protected void addPlusMinusImageTop(java.lang.StringBuffer tableString,
                                    java.lang.String plusMinusLink,
                                    java.lang.String img,
                                    java.lang.String imgKey)

addPlusMinusImage

protected void addPlusMinusImage(java.lang.StringBuffer tableString,
                                 java.lang.String plusMinusLink,
                                 java.lang.String img,
                                 java.lang.String imgKey)

addPlusMinusImageCommon

protected void addPlusMinusImageCommon(java.lang.StringBuffer tableString,
                                       java.lang.String plusMinusLink,
                                       java.lang.String img,
                                       java.lang.String imgKey)

setFormObject

public void setFormObject(Form form)
Sets the form object to be used by this TreeView.

Specified by:
setFormObject in interface FormViewInterface
Parameters:
form - the form object

getFormObject

public Form getFormObject()
Gets the form object to be used by this TreeView.

Specified by:
getFormObject in interface FormViewInterface
Returns:
the form object

getDefaultFormObject

public Form getDefaultFormObject()
Gets the default form object to be used by this TreeView.

Specified by:
getDefaultFormObject in interface FormViewInterface
Returns:
the form object

getAdditionalParameters

public java.util.HashMap getAdditionalParameters()
Returns an HashMap containing additional parameters that should be added to the form used to perform the various actions on the TreeView when nodeLoading is PROGRESSIVE. The default value is null. In the html version, each parameter will be added to the form as a hidden field using the name of the item as the name= parameter on the <input> tag and the value of the item as the value= parameter on the input tag.

Specified by:
getAdditionalParameters in interface FormViewInterface
Returns:
A HashMap containing additional parameters that should be added to the form.
See Also:
HashMap

setAdditionalParameters

public void setAdditionalParameters(java.util.HashMap map)
Sets an HashMap containing additional parameters that should be added to the form used to perform the various actions on the TreeView when nodeLoading is PROGRESSIVE. The default value is null. In the html version, each parameter will be added to the form as a hidden field using the name of the item as the name= parameter on the <input> tag and the value of the item as the value= parameter on the input tag.

Specified by:
setAdditionalParameters in interface FormViewInterface
Parameters:
map - The hashMap containing additional parameters that should be added to the form.
See Also:
HashMap

setAdditionalParameter

public void setAdditionalParameter(java.lang.String name,
                                   java.lang.String value)
Sets an additional parameter to be added to the form used to perform the various actions on the TreeView when nodeLoading is PROGRESSIVE. In the html version, Each parameter will be added to the form as a hidden field using the name of the item as the name= parameter on the <input> tag and the value of the item as the value= parameter on the input tag.

Specified by:
setAdditionalParameter in interface FormViewInterface
Parameters:
name - name of the list item
value - value of the list item
See Also:
HashMap

isFormEnabled

public boolean isFormEnabled()
Description copied from interface: FormViewInterface
Determines if the tbean should render its formObject. If true, then the tbean is responsible for rendering the formObject via the formObject's writeHeader and writeFooter methods. If false then the tbean does not render the formObject and the user is responsible for rendering the formObject.

Specified by:
isFormEnabled in interface FormViewInterface
Returns:
true if the tbean should render its formObject

setFormEnabled

public void setFormEnabled(boolean enabled)
Description copied from interface: FormViewInterface
Sets whether the tbean should render its formObject. If so, then set to true. If set to false, the the user is responsible for rendering the formObject via its writeHeader and writeFooter methods.

Specified by:
setFormEnabled in interface FormViewInterface

isDelayExecutionEnabled

public boolean isDelayExecutionEnabled()
Determines whether the TreeView should delay execution of its JavaScript. If so, then set to true. This will cause the TreeView's JavaScript code to be placed inside a JavaScript function named drawTree(parentDocument). If set to true, the user is responsible for calling the drawTree() JavaScript function possibly in the onLoad of the Document or Window. By default this value is FALSE.

Returns:
value true if the TreeView should delay execution of its javascript.

setDelayExecutionEnabled

public void setDelayExecutionEnabled(boolean enabled)
Sets whether the TreeView should delay execution of its JavaScript. If so, then set to true. This will cause the TreeView's JavaScript code to be placed inside a JavaScript function named drawTree(parentDocument). If set to true, the user is responsible for calling the drawTree() JavaScript function possibly in the onLoad of the Document or Window. By default this value is FALSE.

Parameters:
value - true if the TreeView should delay execution of its javascript.

isRenderUsingDivs

public boolean isRenderUsingDivs()
Determines whether the TreeView should render using div tags instead of TABLE tags. If so, then set to true. This should result in the TreeView rendering quicker. By default this value is FALSE.

Returns:
value true if the TreeView should render using div tags.

setRenderUsingDivs

public void setRenderUsingDivs(boolean enabled)
Sets whether the TreeView should render using div tags instead of TABLE tags. If so, then set to true. This should result in the TreeView rendering quicker. By default this value is FALSE.

Parameters:
value - true if the TreeView should render using div tags.

getStyleMap

public java.util.Map getStyleMap()
Description copied from interface: ComplexStyleInterface
Returns a Map that contains all the Style information for a component

Specified by:
getStyleMap in interface ComplexStyleInterface
Returns:
styleMap Map of all the style information

getTransform

public com.sas.servlet.tbeans.html.TreeView.TreeNodeTransform getTransform()
Gets the transform used to convert a node from in a TreeModel into a tree node for use by this treeView.

Returns:
the transform for the tree node

setTransform

public void setTransform(com.sas.servlet.tbeans.html.TreeView.TreeNodeTransform transform)
Sets the transform to be used to convert a node from in a TreeModel into a tree node for use by this treeView

Parameters:
transform - the transform for the tree node

sort

public static void sort(javax.swing.tree.MutableTreeNode node,
                        java.util.Comparator comparator)
Sort the nodes in a tree.

Parameters:
node - The root node to start sorting under.
comparator - The comparator used to compare nodes during a sort.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.