com.sas.models
Class SimpleJSTreeNode

com.sas.models.SimpleJSTreeNode
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, ComponentInterface, LinkPropertiesInterface, ModelInterface, com.sas.sasserver.jstree.JSTreeNodesInterface, ViewInterface, MultipleValueEventSourceInterface, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.util.EventListener

Deprecated. As of Version 2.0 this class has been replaced by com.sas.models.TreeNode

public class SimpleJSTreeNode
implements com.sas.sasserver.jstree.JSTreeNodesInterface

SimpleJSTreeNode is used to populate the TreeControl transformation bean.

See Also:
TreeControl, Serialized Form

Field Summary
protected  OrderedCollection children
          Deprecated.  
protected  java.lang.String defaultIcon
          Deprecated.  
protected  java.lang.String expandedIcon
          Deprecated.  
protected  java.lang.String link
          Deprecated.  
protected  java.lang.String name
          Deprecated.  
protected  java.lang.String text
          Deprecated.  
 
Constructor Summary
SimpleJSTreeNode()
          Deprecated.  
SimpleJSTreeNode(java.lang.String name, java.lang.String text, java.lang.String link)
          Deprecated. Constructor of JSTreeNode
SimpleJSTreeNode(java.lang.String name, java.lang.String text, java.lang.String link, java.lang.String defaultIcon, java.lang.String expandedIcon)
          Deprecated. Constructor of JSTreeNode
 
Method Summary
 void addChild(SimpleJSTreeNode child)
          Deprecated. Adds a node as a child node.
 SimpleJSTreeNode[] getChildren()
          Deprecated. Returns an array containing all the children of this node
 java.lang.String getDefaultIcon()
          Deprecated. Returns the name of the default icon.
 java.lang.String getExpandedIcon()
          Deprecated. Returns the name of the expanded icon.
 StaticOrderedCollectionInterface getJSTreeNodes()
          Deprecated. Returns the JavaScript that creates the JavaScript node objects needed to create the JavaScript tree control.
 java.lang.String getLink()
          Deprecated. Returns the link associated with the node
 java.lang.String getName()
          Deprecated. Returns the name of the Node
 java.lang.String getRootNodeName()
          Deprecated. Returns then name of the Root Node
 java.lang.String getText()
          Deprecated. Returns the text displayed for the node
 boolean removeChild(SimpleJSTreeNode child)
          Deprecated. Remove an item from this collection.
 void setDefaultIcon(java.lang.String icon)
          Deprecated. Sets the name of the default icon.
 void setExpandedIcon(java.lang.String icon)
          Deprecated. Sets the name of the expanded icon.
 void setLink(java.lang.String link)
          Deprecated. Sets the link associated with the node
 void setName(java.lang.String name)
          Deprecated. Sets the name of the node
 void setText(java.lang.String text)
          Deprecated. Sets the text displayed for the node
 
Methods inherited from class com.sas.Component
addLink, addPropertyChangeListener, addVetoableChangeListener, anyPropertyChangeListeners, attachModel, attachView, beansIsDesignTime, beansSetDesignTime, clone, clone, detachModel, detachView, dumpComponent, firePropertyChange, firePropertyChange, fireVetoableChange, getComponentDescription, getComponentSupportInfo, getEventMethod, getEventValues, getExtendedBeanInfo, getLinkInfo, getModelInterface, getRequiredInterfaces, getResources, getStringResource, getViewInterfaceSupportInfo, initialize, initializeComponent, isDesignTime, isLinked, propertyChange, queryLinks, queryLinks, refresh, removeAllLinks, removeInterfaceTraps, removeLink, removePropertyChangeListener, removeVetoableChangeListener, setComponentDescription, setComponentSupportInfo, setDefaultValues, setLinkInfo, setModelInterface, setRequiredInterfaces, setViewInterfaceSupportInfo, supportsListenerInterface, supportsRequiredInterfaces, trapInterfaceEvents, validateObject
 

Field Detail

name

protected java.lang.String name
Deprecated. 

text

protected java.lang.String text
Deprecated. 

link

protected java.lang.String link
Deprecated. 

defaultIcon

protected java.lang.String defaultIcon
Deprecated. 

expandedIcon

protected java.lang.String expandedIcon
Deprecated. 

children

protected OrderedCollection children
Deprecated. 
Constructor Detail

SimpleJSTreeNode

public SimpleJSTreeNode()
Deprecated. 

SimpleJSTreeNode

public SimpleJSTreeNode(java.lang.String name,
                        java.lang.String text,
                        java.lang.String link,
                        java.lang.String defaultIcon,
                        java.lang.String expandedIcon)
Deprecated. 
Constructor of JSTreeNode

Parameters:
name - - name of the node
text - - text to display in tree
link - - link to associate with node
defaultIcon - - icon to display when folder is closed
expandedIcon - - icon to display when folder is open

SimpleJSTreeNode

public SimpleJSTreeNode(java.lang.String name,
                        java.lang.String text,
                        java.lang.String link)
Deprecated. 
Constructor of JSTreeNode

Parameters:
name - - name of the node
text - - text to display in tree
link - - link to associate with node
Method Detail

getName

public java.lang.String getName()
Deprecated. 
Returns the name of the Node

Returns:
the name of the Node

setName

public void setName(java.lang.String name)
Deprecated. 
Sets the name of the node

Parameters:
name - - name of the node

getText

public java.lang.String getText()
Deprecated. 
Returns the text displayed for the node

Returns:
text displayed on the node

setText

public void setText(java.lang.String text)
Deprecated. 
Sets the text displayed for the node

Parameters:
text - - text displayed on the node

getLink

public java.lang.String getLink()
Deprecated. 
Returns the link associated with the node

Returns:
the link associated with the node

setLink

public void setLink(java.lang.String link)
Deprecated. 
Sets the link associated with the node

Parameters:
the - link associated with the node

getDefaultIcon

public java.lang.String getDefaultIcon()
Deprecated. 
Returns the name of the default icon. This should not be the fully qualified name such as http://myWebServer/gifs/imageName.gif. Specify only the name of the file, in this example imageName.gif. If no icon is specified "folderClosed.gif" will be returned. The TreeConrol object will supply the location of the images.

Returns:
the name of the default icon.

setDefaultIcon

public void setDefaultIcon(java.lang.String icon)
Deprecated. 
Sets the name of the default icon. This should not be the fully qualified name such as http://myWebServer/gifs/imageName.gif. Specify only the name of the file, in this example imageName.gif. The TreeConrol object will supply the location of the images.

Parameters:
icon - - the name of the default icon.

getExpandedIcon

public java.lang.String getExpandedIcon()
Deprecated. 
Returns the name of the expanded icon. This should not be the fully qualified name such as http://myWebServer/gifs/imageName.gif. Specify only the name of the file, in this example imageName.gif. if no icon is specified the defaultIcon will be returned. If the defaultIcon and the expandedIcon are null "folderOpen.gif" is returned. The TreeConrol object will supply the location of the images.

Returns:
the name of the expanded icon.

setExpandedIcon

public void setExpandedIcon(java.lang.String icon)
Deprecated. 
Sets the name of the expanded icon. This should not be the fully qualified name such as http://myWebServer/gifs/imageName.gif. Specify only the name of the file, in this example imageName.gif. The TreeConrol object will supply the location of the images.

Parameters:
icon - - the name of the expanded icon.

addChild

public void addChild(SimpleJSTreeNode child)
Deprecated. 
Adds a node as a child node. param child - a node to a child of this node


removeChild

public boolean removeChild(SimpleJSTreeNode child)
Deprecated. 
Remove an item from this collection. If the item appears multiple times, only the first occurrance is removed. param child - a node to a child of this node


getChildren

public SimpleJSTreeNode[] getChildren()
Deprecated. 
Returns an array containing all the children of this node

Returns:
- an array of nodes.

getJSTreeNodes

public StaticOrderedCollectionInterface getJSTreeNodes()
                                                throws java.io.IOException
Deprecated. 
Returns the JavaScript that creates the JavaScript node objects needed to create the JavaScript tree control.

Specified by:
getJSTreeNodes in interface com.sas.sasserver.jstree.JSTreeNodesInterface
Returns:
a collection containing the JavaScript that creates the JavaScript node objects
Throws:
java.io.IOException - Thrown if the JavaScript statements cannot be written to the collection used by the Java Script tree control.
See Also:
TreeControl

getRootNodeName

public java.lang.String getRootNodeName()
Deprecated. 
Returns then name of the Root Node

Specified by:
getRootNodeName in interface com.sas.sasserver.jstree.JSTreeNodesInterface
Returns:
root node name



Copyright © 2009 SAS Institute Inc. All Rights Reserved.