Class sunsoft.jws.visual.rt.type.AMRef
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.type.AMRef

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.type.AMRef

public class AMRef
extends Object
A reference to an attribute manager object. The reference can merely be the expected name of the object, if necessary. That way there will be no error until the reference is actually needed. This reference can be made to serve in forward-referencing situations (like file loads) when the object referred to hasn't been loaded yet.
See Also:
AttributeManager

Constructor Index

 o AMRef(AttributeManager)
Creates an already-resolved reference.
 o AMRef(String)
Creates a shadow reference from the name only.

Method Index

 o getName()
Returns the name of the object referred to.
 o getRef(AttributeManager)
Returns the object referred to.
 o startRecording()
Starts recording the AMRefs that are created using a name only.
 o stopRecording(AttributeManager)
Stops recording the AMRefs that are created and resolves them.

Constructors

 o AMRef
  public AMRef(String name)
Creates a shadow reference from the name only.
Parameters:
name - name of object to which this reference refers
See Also:
getRef
 o AMRef
  public AMRef(AttributeManager mgr)
Creates an already-resolved reference.
Parameters:
mgr - the object referred to

Methods

 o startRecording
  public static void startRecording()
Starts recording the AMRefs that are created using a name only. Later a call to the stopRecording method can be used in order to force the resolution of all the AMRefs created since this call was made. The Designer uses this in order to insure that all AMRefs created during the loading of a file are force to resolve and bind to the real AttributeManager objects to which they refer.
See Also:
stopRecording
 o stopRecording
  public static void stopRecording(AttributeManager scope)
Stops recording the AMRefs that are created and resolves them. Resolution occurrs within the scope of the tree given. If scope is null then stops recording, clears the list, and doesn't resolve anything.
Parameters:
scope - the attribute manager tree in which to resolve names
See Also:
startRecording
 o getRef
  public AttributeManager getRef(AttributeManager scope)
Returns the object referred to. Resolves it from the name if necessary.
Parameters:
scope - the attribute manager tree in which to resolve the name
 o getName
  public String getName()
Returns the name of the object referred to.

All Packages  Class Hierarchy  This Package  Previous  Next  Index