com.yworks.yfiles.server.graphml.flexio
Class ResolveReferenceEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.yworks.yfiles.server.graphml.flexio.ResolveReferenceEvent
All Implemented Interfaces:
java.io.Serializable

public class ResolveReferenceEvent
extends java.util.EventObject

Event object the represents the invocation state of the various callbacks in class DefaultReferenceResolver

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ResolveReferenceEvent(java.lang.Object source, GraphMLParseContext context, java.lang.String refid)
          Create a resolve reference event object.
 
Method Summary
 GraphMLParseContext getContext()
          Returns the current parse context.
 java.lang.String getRefid()
          Returns the refid of the shared element that is to be resolved.
 java.lang.Object getValue()
          Returns the shared instance, if the reference was successfully resolved.
 boolean isHandled()
          Whether the reference was successfully resolved.
 void setValue(java.lang.Object value)
          Set the successfully resolved shared instance.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolveReferenceEvent

public ResolveReferenceEvent(java.lang.Object source,
                             GraphMLParseContext context,
                             java.lang.String refid)
Create a resolve reference event object.

Parameters:
source - The event source.
context - The current parse context.
refid - The refid of the shared element that is to be resolved.
Method Detail

isHandled

public boolean isHandled()
Whether the reference was successfully resolved.

Returns:

getContext

public GraphMLParseContext getContext()
Returns the current parse context.


getValue

public java.lang.Object getValue()
Returns the shared instance, if the reference was successfully resolved.


getRefid

public java.lang.String getRefid()
Returns the refid of the shared element that is to be resolved.

Returns:

setValue

public void setValue(java.lang.Object value)
Set the successfully resolved shared instance.

After this method has been called, isHandled() will yield true.



Copyright © 2000-2013 yWorks GmbH. All rights reserved