com.sas
Class RunningObjectTable

com.sas.RunningObjectTable

public class RunningObjectTable

RunningObjectTable (ie. ROT) is used as a communication channel between the IDE and the component customizers. The IDE registers component references and their associated names with the ROT. Customizers can then get a list of components to allow the user to select a component by name.

This class is not intended to be used by SAS customers.


Field Summary
protected static AssociationList components
           
 
Constructor Summary
RunningObjectTable()
           
 
Method Summary
static java.util.Enumeration getComponentNames()
          Returns an enumeration of component names.
static java.util.Enumeration getComponents()
          Returns an enumeration of component references.
static java.util.Enumeration getComponents(java.lang.Class filter)
          Returns an enumeration of component references that are subclasses of or implement the Class passed in.
static java.lang.Object lookupComponent(java.lang.String name)
          Returns the component reference associated with the given name.
static java.lang.String lookupComponentName(java.lang.Object component)
          Returns the component name associated with the given reference.
static void registerComponent(java.lang.Object component, java.lang.String frame, java.lang.String name)
          Register a component with a given frame and component name in the ROT.
static void unregisterAll()
          Unregister all components in the ROT.
static void unregisterComponent(java.lang.Object component)
          Unregister a component with a given name in the ROT.
 

Field Detail

components

protected static AssociationList components
Constructor Detail

RunningObjectTable

public RunningObjectTable()
Method Detail

registerComponent

public static void registerComponent(java.lang.Object component,
                                     java.lang.String frame,
                                     java.lang.String name)
Register a component with a given frame and component name in the ROT. If a component is registered with an existing frame and name combination, the previous component is unregistered and the new one is registered.


unregisterComponent

public static void unregisterComponent(java.lang.Object component)
Unregister a component with a given name in the ROT. It is not an error to unregister a component which is not registered.


unregisterAll

public static void unregisterAll()
Unregister all components in the ROT.


lookupComponent

public static java.lang.Object lookupComponent(java.lang.String name)
Returns the component reference associated with the given name.


lookupComponentName

public static java.lang.String lookupComponentName(java.lang.Object component)
Returns the component name associated with the given reference.


getComponentNames

public static java.util.Enumeration getComponentNames()
Returns an enumeration of component names.


getComponents

public static java.util.Enumeration getComponents()
Returns an enumeration of component references.


getComponents

public static java.util.Enumeration getComponents(java.lang.Class filter)
Returns an enumeration of component references that are subclasses of or implement the Class passed in.




Copyright © 2009 SAS Institute Inc. All Rights Reserved.