com.sas.models
Class Tree

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

public class Tree
implements TreeInterface

Tree is the implementation of TreeInterface.

See Also:
Serialized Form

Constructor Summary
Tree()
          Constructs a Tree object.
Tree(NodeInterface root)
          Constructs a Tree object.
 
Method Summary
 NodeInterface getRoot()
          Returns the root node of the Tree.
 void setRoot(NodeInterface newValue)
          Sets the root node of the Tree.
 
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
 

Constructor Detail

Tree

public Tree()
Constructs a Tree object.


Tree

public Tree(NodeInterface root)
Constructs a Tree object. The Tree is initialized with the specified node as its root node.

Parameters:
root - the node to be set as the root node
Method Detail

getRoot

public NodeInterface getRoot()
Returns the root node of the Tree.

Specified by:
getRoot in interface TreeInterface
Returns:
the root node

setRoot

public void setRoot(NodeInterface newValue)
Sets the root node of the Tree. Null is a valid value.

Parameters:
newValue - the newValue for the root node



Copyright © 2009 SAS Institute Inc. All Rights Reserved.