com.sas.sasserver.tree
Class _rprxRemoteDesignTimeServerNode

com.sas.sasserver.tree._rprxRemoteDesignTimeServerNode
All Implemented Interfaces:
com.sas.beans.IntrospectInterfaceForBeanInfo, com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.collection.ContentsChangedSource, com.sas.ComponentInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, com.sas.models.NodeIconInterface, com.sas.models.NodeInterface, com.sas.models.SimpleNodeInterface, com.sas.models.TreeInterface, com.sas.PublicClonable, com.sas.rmi.ConnectionLoginInterface, com.sas.rmi.DesignTimeInf, com.sas.rmi.RocfRemoteObject, RemoteSASListInterface, RemoteServerNodeInterface, ServerNodeInterface, com.sas.ViewInterface, MultipleValueEventSourceInterface, java.beans.PropertyChangeListener, java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class _rprxRemoteDesignTimeServerNode
implements ServerNodeInterface, com.sas.ComponentInterface, RemoteServerNodeInterface, RemoteSASListInterface, com.sas.collection.ContentsChangedSource, com.sas.models.TreeInterface, com.sas.models.NodeInterface, com.sas.models.NodeIconInterface

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sas.sasserver.tree.RemoteServerNodeInterface
CHILDREN_KEY, CLASS_KEY, contextClasspath, EXPICON_KEY, EXPSELICON_KEY, EXPTEXT_KEY, ICON_KEY, ID_KEY, LEAF_KEY, OTHERICONS_KEY, PARENTID_KEY, SELICON_KEY, TEXT_KEY, TYPE_KEY
 
Constructor Summary
_rprxRemoteDesignTimeServerNode()
           
 
Method Summary
 int _countNodeChildren(int p1)
          Count the node's children, but stop if a maximum is reached.
 int _getDefaultIcon()
          Retrieve this node's default icon, which is used to display the unexpanded node in a tree view.
 int _getExpandedIcon()
          Retrieve this node's expanded icon, which is used to display the expanded node in a tree view.
 int _getExpandedSelectedIcon()
          Retrieve this node's icon to be used when displaying the selected expanded node in a tree view.
 com.sas.collection.hlist.HListInterface _getMembers()
          Returns the list of members in the remote SCL object.
 int _getNodeChildCount()
          Returns the number of children.
 com.sas.collection.hlist.HListInterface _getNodeChildren(int p1, int p2)
          Obtain a list that describes the specified children of the current node.
 java.lang.String _getNodeExpandedText()
          Retrieve the text to display when this node is expanded.
 java.lang.String _getNodeText()
          Retrieve the text to display when this node is not expanded.
 java.lang.String _getNodeType()
          Retrieve this node's type, which is used to determine the node's icon if none is specified explicitly.
 int _getSelectedIcon()
          Retrieve this node's selected icon, which is used to display the selected unexpanded node in a tree view.
 void _initialize(com.sas.collection.hlist.HListInterface p1)
           
 void _initialize(com.sas.collection.hlist.HListInterface p1, int p2, int p3)
          Initialize the remote object based on the items in the initList.
 boolean _isLeafNode()
          Tell if the node is a leaf node.
 int _RemoteObject_version()
           
 void _removeNodeChild(int p1)
          Remove a child node.
 void _setDefaultIcon(int p1)
          Set this node's default icon, which is used to display the unexpanded node in a tree view.
 void _setExpandedIcon(int p1)
          Set this node's expanded icon, which is used to display the expanded node in a tree view.
 void _setExpandedSelectedIcon(int p1)
          Set this node's type, which is used when displaying the selected expanded node in a tree view.
 void _setNodeExpandedText(java.lang.String p1)
          Set the text to display when this node is expanded.
 void _setNodeText(java.lang.String p1)
          Set the text to display when this node is not expanded.
 void _setNodeType(java.lang.String p1)
          Set this node's type, which is used to determine the node's icon if none is specified explicitly.
 void _setSelectedIcon(int p1)
          Set this node's selected icon, which is used to display the selected unexpanded node in a tree view.
 void addContentsChangedListener(com.sas.collection.ContentsChangedListener p1)
           
 java.lang.Object clone()
          Returns a clone of the original design time component called upon
 int countNodeChildren(int p1)
          Counts the children of the current node.
 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.
 com.sas.visuals.IconInterface getExpandedSelectedIcon()
          Returns the expandedSelected icon for the current node.
 com.sas.models.SimpleNodeInterface getNodeChild(int p1)
          Returns the child node at the specified index.
 int getNodeChildCount()
          Returns the number of children.
 com.sas.models.SimpleNodeInterface[] getNodeChildren(int p1, int p2)
          Returns the specified range of children for the current node.
 java.lang.String getNodeExpandedText()
          Returns the value of the nodeExpandedText property.
 java.lang.String getNodeText()
          Returns the value of the nodeText property.
 java.lang.String getNodeType()
          Returns the value of the nodeType property.
 com.sas.models.NodeInterface getRoot()
          Returns a NodeInterface object to serve as the root node.
 com.sas.visuals.IconInterface getSelectedIcon()
          Returns the selected icon for the current node.
 boolean isLeafNode()
          Indicates whether the current node is a leaf.
 void removeContentsChangedListener(com.sas.collection.ContentsChangedListener p1)
           
 

Constructor Detail

_rprxRemoteDesignTimeServerNode

public _rprxRemoteDesignTimeServerNode()
Method Detail

_RemoteObject_version

public int _RemoteObject_version()
Specified by:
_RemoteObject_version in interface com.sas.rmi.RocfRemoteObject
Specified by:
_RemoteObject_version in class com.sas.rmi.RemoteBaseClient

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: RemoteDesignTimeBaseClient
Returns a clone of the original design time component called upon

Specified by:
clone in interface com.sas.PublicClonable
Overrides:
clone in class com.sas.rmi.RemoteDesignTimeBaseClient
Returns:
a clone object
Throws:
java.lang.CloneNotSupportedException - if the model attached to the component being cloned will not allow the clone to attach.

_initialize

public void _initialize(com.sas.collection.hlist.HListInterface p1)
Specified by:
_initialize in interface ServerNodeInterface

_initialize

public void _initialize(com.sas.collection.hlist.HListInterface p1,
                        int p2,
                        int p3)
Description copied from interface: RemoteServerNodeInterface
Initialize the remote object based on the items in the initList. This method is called after creating a remote instance of a subnode based on the CLASS_KEY of the subnode.

Specified by:
_initialize in interface RemoteServerNodeInterface
Parameters:
p1 - a list of node properties.
p2 - the object id of the parent node
p3 - the list id of the original list used to create the node. The new node should replace this obsolete list on the parent with the new initList and new node object id.

_getNodeChildren

public com.sas.collection.hlist.HListInterface _getNodeChildren(int p1,
                                                                int p2)
Description copied from interface: RemoteServerNodeInterface
Obtain a list that describes the specified children of the current node. Each child is described by a sublist in this returned list.

Specified by:
_getNodeChildren in interface RemoteServerNodeInterface
Parameters:
p1 - the index of the first subnode to return (the first child is at index 0)
p2 - how many children to return. The returned array will have length equal to count. If there are not this many chldren starting at nodeIndex, the remaining items are left null.
Returns:
a list of sublists, each of which contains items describing a subnode of the current node. Items in each sublist are optional but use the item names stored in the static variables:
See Also:
RemoteServerNodeInterface.CLASS_KEY, RemoteServerNodeInterface.ID_KEY, RemoteServerNodeInterface.TEXT_KEY, RemoteServerNodeInterface.TYPE_KEY, RemoteServerNodeInterface.EXPTEXT_KEY, RemoteServerNodeInterface.ICON_KEY, RemoteServerNodeInterface.EXPICON_KEY, RemoteServerNodeInterface.SELICON_KEY, RemoteServerNodeInterface.EXPSELICON_KEY, RemoteServerNodeInterface.LEAF_KEY

_getNodeExpandedText

public java.lang.String _getNodeExpandedText()
Description copied from interface: RemoteServerNodeInterface
Retrieve the text to display when this node is expanded.

Specified by:
_getNodeExpandedText in interface RemoteServerNodeInterface
Returns:
the expanded text
See Also:
NodeInterface.getNodeExpandedText()

_setNodeExpandedText

public void _setNodeExpandedText(java.lang.String p1)
Description copied from interface: RemoteServerNodeInterface
Set the text to display when this node is expanded.

Specified by:
_setNodeExpandedText in interface RemoteServerNodeInterface
Parameters:
p1 - the expanded text

_getNodeText

public java.lang.String _getNodeText()
Description copied from interface: RemoteServerNodeInterface
Retrieve the text to display when this node is not expanded.

Specified by:
_getNodeText in interface RemoteServerNodeInterface
Returns:
the unexpanded text
See Also:
NodeInterface.getNodeExpandedText()

_setNodeText

public void _setNodeText(java.lang.String p1)
Description copied from interface: RemoteServerNodeInterface
Set the text to display when this node is not expanded.

Specified by:
_setNodeText in interface RemoteServerNodeInterface
Parameters:
p1 - the unexpanded text

_getNodeType

public java.lang.String _getNodeType()
Description copied from interface: RemoteServerNodeInterface
Retrieve this node's type, which is used to determine the node's icon if none is specified explicitly.

Specified by:
_getNodeType in interface RemoteServerNodeInterface
Returns:
this node type
See Also:
NodeInterface.getNodeType()

_setNodeType

public void _setNodeType(java.lang.String p1)
Description copied from interface: RemoteServerNodeInterface
Set this node's type, which is used to determine the node's icon if none is specified explicitly.

Specified by:
_setNodeType in interface RemoteServerNodeInterface
Parameters:
p1 - this node type
See Also:
NodeInterface.getNodeType()

_getDefaultIcon

public int _getDefaultIcon()
Description copied from interface: RemoteServerNodeInterface
Retrieve this node's default icon, which is used to display the unexpanded node in a tree view.

Specified by:
_getDefaultIcon in interface RemoteServerNodeInterface
Returns:
this node type
See Also:
NodeIconInterface.getDefaultIcon()

_setDefaultIcon

public void _setDefaultIcon(int p1)
Description copied from interface: RemoteServerNodeInterface
Set this node's default icon, which is used to display the unexpanded node in a tree view.

Specified by:
_setDefaultIcon in interface RemoteServerNodeInterface
Parameters:
p1 - this node type

_getExpandedIcon

public int _getExpandedIcon()
Description copied from interface: RemoteServerNodeInterface
Retrieve this node's expanded icon, which is used to display the expanded node in a tree view.

Specified by:
_getExpandedIcon in interface RemoteServerNodeInterface
Returns:
this node type
See Also:
NodeIconInterface.getDefaultIcon()

_setExpandedIcon

public void _setExpandedIcon(int p1)
Description copied from interface: RemoteServerNodeInterface
Set this node's expanded icon, which is used to display the expanded node in a tree view.

Specified by:
_setExpandedIcon in interface RemoteServerNodeInterface
Parameters:
p1 - this node type
See Also:
NodeIconInterface.getExpandedIcon()

_getSelectedIcon

public int _getSelectedIcon()
Description copied from interface: RemoteServerNodeInterface
Retrieve this node's selected icon, which is used to display the selected unexpanded node in a tree view.

Specified by:
_getSelectedIcon in interface RemoteServerNodeInterface
Returns:
this node type
See Also:
NodeIconInterface.getDefaultIcon()

_setSelectedIcon

public void _setSelectedIcon(int p1)
Description copied from interface: RemoteServerNodeInterface
Set this node's selected icon, which is used to display the selected unexpanded node in a tree view.

Specified by:
_setSelectedIcon in interface RemoteServerNodeInterface
Parameters:
p1 - this node type
See Also:
NodeIconInterface.getSelectedIcon()

_getExpandedSelectedIcon

public int _getExpandedSelectedIcon()
Description copied from interface: RemoteServerNodeInterface
Retrieve this node's icon to be used when displaying the selected expanded node in a tree view.

Specified by:
_getExpandedSelectedIcon in interface RemoteServerNodeInterface
Returns:
this node type
See Also:
NodeIconInterface.getExpandedSelectedIcon()

_setExpandedSelectedIcon

public void _setExpandedSelectedIcon(int p1)
Description copied from interface: RemoteServerNodeInterface
Set this node's type, which is used when displaying the selected expanded node in a tree view.

Specified by:
_setExpandedSelectedIcon in interface RemoteServerNodeInterface
Parameters:
p1 - this node type

_isLeafNode

public boolean _isLeafNode()
Description copied from interface: RemoteServerNodeInterface
Tell if the node is a leaf node.

Specified by:
_isLeafNode in interface RemoteServerNodeInterface
Returns:
true if the node is a leaf, false if it has zero or more children.
See Also:
SimpleNodeInterface.isLeafNode()

_countNodeChildren

public int _countNodeChildren(int p1)
Description copied from interface: RemoteServerNodeInterface
Count the node's children, but stop if a maximum is reached.

Specified by:
_countNodeChildren in interface RemoteServerNodeInterface
Returns:
the number of children. This may be max even if there are more than max children but it is expensive to count them all.
See Also:
SimpleNodeInterface.countNodeChildren(int)

_getNodeChildCount

public int _getNodeChildCount()
Description copied from interface: RemoteServerNodeInterface
Returns the number of children. If the number of children is unknown, -1 is returned.

Specified by:
_getNodeChildCount in interface RemoteServerNodeInterface
See Also:
RemoteServerNodeInterface._countNodeChildren(int)

_removeNodeChild

public void _removeNodeChild(int p1)
Description copied from interface: RemoteServerNodeInterface
Remove a child node.

Specified by:
_removeNodeChild in interface RemoteServerNodeInterface

_getMembers

public com.sas.collection.hlist.HListInterface _getMembers()
Description copied from interface: RemoteSASListInterface
Returns the list of members in the remote SCL object.

Specified by:
_getMembers in interface RemoteSASListInterface
Returns:
members The list of members.

addContentsChangedListener

public void addContentsChangedListener(com.sas.collection.ContentsChangedListener p1)
Specified by:
addContentsChangedListener in interface com.sas.collection.ContentsChangedSource

removeContentsChangedListener

public void removeContentsChangedListener(com.sas.collection.ContentsChangedListener p1)
Specified by:
removeContentsChangedListener in interface com.sas.collection.ContentsChangedSource

getRoot

public com.sas.models.NodeInterface getRoot()
Description copied from interface: TreeInterface
Returns a NodeInterface object to serve as the root node.

Specified by:
getRoot in interface com.sas.models.TreeInterface
Returns:
the root node as type NodeInterface

getNodeExpandedText

public java.lang.String getNodeExpandedText()
Description copied from interface: NodeInterface
Returns the value of the nodeExpandedText property. The expanded text is usually a more descriptive version of the nodeText property. For example, a node that represents a file can return the file name for the nodeText property and the full path name for the nodeExpandedText property.

Specified by:
getNodeExpandedText in interface com.sas.models.NodeInterface
Returns:
the nodeExpandedText property

getNodeText

public java.lang.String getNodeText()
Description copied from interface: NodeInterface
Returns the value of the nodeText property.

Specified by:
getNodeText in interface com.sas.models.NodeInterface
Returns:
the nodeText property

getNodeType

public java.lang.String getNodeType()
Description copied from interface: NodeInterface
Returns the value of the nodeType property. The type can be used for categorizing nodes.

Specified by:
getNodeType in interface com.sas.models.NodeInterface
Returns:
the nodeType property

countNodeChildren

public int countNodeChildren(int p1)
Description copied from interface: SimpleNodeInterface
Counts the children of the current node. countNodeChildren differs from getNodeChildCount when the number of children is unknown, i.e. when getNodeChildCount returns -1. If your implementation of getNodeChildCount never returns -1, then simply define countNodeChildren as a return of getNodeChildCount, otherwise read-on.

countNodeChildren is an instruction to determine the number of children even though that number is not readily known. To limit the potential overhead of this determination, the maximum number of children to read may be specified.

Specified by:
countNodeChildren in interface com.sas.models.SimpleNodeInterface
Returns:
The number of children known to be available.

getNodeChildCount

public int getNodeChildCount()
Description copied from interface: SimpleNodeInterface
Returns the number of children. If the number of children is unknown, -1 should be returned.

Specified by:
getNodeChildCount in interface com.sas.models.SimpleNodeInterface
Returns:
the number of children or -1 if unknown

isLeafNode

public boolean isLeafNode()
Description copied from interface: SimpleNodeInterface
Indicates whether the current node is a leaf. A value of true indicates that the current node is a leaf and hence will not have any children.

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

getNodeChild

public com.sas.models.SimpleNodeInterface getNodeChild(int p1)
Description copied from interface: SimpleNodeInterface
Returns the child node at the specified index. If the leafNode property value is true then this method should return null.

Specified by:
getNodeChild in interface com.sas.models.SimpleNodeInterface
Parameters:
p1 - the 0-based index of the child node to retrieve
Returns:
the child at index or null if the leafNode property value is true.

getNodeChildren

public com.sas.models.SimpleNodeInterface[] getNodeChildren(int p1,
                                                            int p2)
Description copied from interface: SimpleNodeInterface
Returns the specified range of children for the current node. If there are less children than are queried for, an implementation can return an array whose size if representative of the actual number of children being returned or an array whose size is the same as the number of children asked for. If the resulting array's size is the same as the number asked for and there are fewer children returned than asked for the implementation should assign the unused values in the array to null. If the leafNode property value is true then this method should return null.

Specified by:
getNodeChildren in interface com.sas.models.SimpleNodeInterface
Parameters:
p1 - 0-based index which identifies the start of the range
p2 - the amount of children to get
Returns:
an array containing the specified range of children or null if the leafNode property value is true.

getDefaultIcon

public com.sas.visuals.IconInterface getDefaultIcon()
Description copied from interface: NodeIconInterface
Returns the default icon for the current node.

Specified by:
getDefaultIcon in interface com.sas.models.NodeIconInterface
Returns:
the default icon for the current node

getExpandedIcon

public com.sas.visuals.IconInterface getExpandedIcon()
Description copied from interface: NodeIconInterface
Returns the expanded icon for the current node. If the expanded icon is null then the result of getDefaultIcon should be returned.

Specified by:
getExpandedIcon in interface com.sas.models.NodeIconInterface
Returns:
the expanded icon for the current node

getSelectedIcon

public com.sas.visuals.IconInterface getSelectedIcon()
Description copied from interface: NodeIconInterface
Returns the selected icon for the current node. If the selected icon is null then the result of getDefaultIcon should be returned.

Specified by:
getSelectedIcon in interface com.sas.models.NodeIconInterface
Returns:
the selected icon for the current node

getExpandedSelectedIcon

public com.sas.visuals.IconInterface getExpandedSelectedIcon()
Description copied from interface: NodeIconInterface
Returns the expandedSelected icon for the current node. If the expandedSelected icon is null then the result of getExpandedIcon should be returned.

Specified by:
getExpandedSelectedIcon in interface com.sas.models.NodeIconInterface
Returns:
the expandedSelected icon for the current node



Copyright © 2009 SAS Institute Inc. All Rights Reserved.