com.sas.sasserver
Class SASListNode

com.sas.sasserver.SASListNode
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, com.sas.ModelInterface, com.sas.models.MutableNodeInterface, com.sas.models.MutableSimpleNodeInterface, com.sas.models.NodeIconInterface, com.sas.models.NodeInterface, com.sas.models.SimpleNodeInterface, com.sas.models.StaticNodeStyleInterface, com.sas.models.TreeInterface, java.io.Serializable

public abstract class SASListNode

SASListNode is an abstract class which is subclassed by the SASDataSetNode and SASCatalogEntryListNode classes. It provides the ability to set ROCF information, icon names, and leaf node status.

See Also:
Serialized Form

Field Summary
protected  com.sas.rmi.Rocf classFactory
           
protected  java.lang.String defaultIconName
           
protected  java.lang.String expandedIconName
           
protected static java.util.Hashtable imageViewCache
           
protected  boolean isLeafNode
           
protected  com.sas.rmi.Connection rocfContext
           
 
Constructor Summary
SASListNode()
           
SASListNode(java.lang.String text)
           
SASListNode(java.lang.String text, java.lang.String nodeType)
           
 
Method Summary
 com.sas.visuals.IconInterface getDefaultIcon()
          Returns the default icon for the current node.
 com.sas.visuals.IconInterface getExpandedIcon()
          Returns the expanded icon for the current node.
protected static com.sas.visuals.IconInterface getImage(java.lang.String name)
           
 boolean isLeafNode()
          Indicates whether the current Node is a leaf (has no children).
 void setIconNames(java.lang.String defaultIconName, java.lang.String expandedIconName)
           
 void setLeafNode(boolean isLeafNode)
           
 void setRocfInfo(com.sas.rmi.Connection rocfContext, com.sas.rmi.Rocf classFactory)
           
 

Field Detail

rocfContext

protected com.sas.rmi.Connection rocfContext

classFactory

protected com.sas.rmi.Rocf classFactory

isLeafNode

protected boolean isLeafNode

defaultIconName

protected java.lang.String defaultIconName

expandedIconName

protected java.lang.String expandedIconName

imageViewCache

protected static java.util.Hashtable imageViewCache
Constructor Detail

SASListNode

public SASListNode()

SASListNode

public SASListNode(java.lang.String text)

SASListNode

public SASListNode(java.lang.String text,
                   java.lang.String nodeType)
Method Detail

setRocfInfo

public void setRocfInfo(com.sas.rmi.Connection rocfContext,
                        com.sas.rmi.Rocf classFactory)

setIconNames

public void setIconNames(java.lang.String defaultIconName,
                         java.lang.String expandedIconName)

isLeafNode

public boolean isLeafNode()
Description copied from class: Node
Indicates whether the current Node is a leaf (has no children).

Specified by:
isLeafNode in interface com.sas.models.SimpleNodeInterface
Overrides:
isLeafNode in class com.sas.models.Node
Returns:
true if the current node is a leaf, otherwise false

setLeafNode

public void setLeafNode(boolean isLeafNode)

getDefaultIcon

public com.sas.visuals.IconInterface getDefaultIcon()
Description copied from class: NodeIcon
Returns the default icon for the current node. The default icon is used for unexpanded, unselected states. If no other icons are set, then it will serve for all states. If there is no default icon set, null is returned. The default value is null.

Specified by:
getDefaultIcon in interface com.sas.models.NodeIconInterface
Overrides:
getDefaultIcon in class com.sas.models.NodeIcon
Returns:
the default icon, otherwise null
See Also:
NodeIconInterface.getDefaultIcon()

getExpandedIcon

public com.sas.visuals.IconInterface getExpandedIcon()
Description copied from class: NodeIcon
Returns the expanded icon for the current node. The expanded icon is used whenever a node is expanded but not selected. If a node is a leafNode, expanded icon is ignored. If there is no expanded icon set, the result of getDefaultIcon is returned.

Specified by:
getExpandedIcon in interface com.sas.models.NodeIconInterface
Overrides:
getExpandedIcon in class com.sas.models.NodeIcon
Returns:
the expanded icon, otherwise the result of getDefaultIcon
See Also:
NodeIconInterface.getExpandedIcon()

getImage

protected static com.sas.visuals.IconInterface getImage(java.lang.String name)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.