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
-
AMRef(AttributeManager)
- Creates an already-resolved reference.
-
AMRef(String)
- Creates a shadow reference from the name only.
-
getName()
- Returns the name of the object referred to.
-
getRef(AttributeManager)
- Returns the object referred to.
-
startRecording()
- Starts recording the AMRefs that are created using a name only.
-
stopRecording(AttributeManager)
- Stops recording the AMRefs that are created and resolves them.
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
AMRef
public AMRef(AttributeManager mgr)
- Creates an already-resolved reference.
- Parameters:
- mgr - the object referred to
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
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
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
getName
public String getName()
- Returns the name of the object referred to.
All Packages Class Hierarchy This Package Previous Next Index