com.mindfusion.diagramming
Class ControlNodeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.ControlNodeEvent
All Implemented Interfaces:
java.io.Serializable

public class ControlNodeEvent
extends java.util.EventObject

Contains the arguments passes to handlers of the control host serialization events.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ControlNodeEvent(java.lang.Object source, ControlNode node, org.w3c.dom.Element element, XmlPersistContext context)
          Initializes a new instance of the ControlNodeEvent class.
 
Method Summary
 XmlPersistContext getContext()
          Gets an XmlPersistContext object that provides serialization helper methods.
 boolean getHandled()
          Gets a value indicating whether the event is handled.
 ControlNode getNode()
          Gets a reference to the ControlNode being serialized or deserialized.
 org.w3c.dom.Element getXmlElement()
          Gets an XML element that stores the control attributes.
 void setHandled(boolean value)
          Sets a value indicating whether the event is handled.
 
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

ControlNodeEvent

public ControlNodeEvent(java.lang.Object source,
                        ControlNode node,
                        org.w3c.dom.Element element,
                        XmlPersistContext context)
Initializes a new instance of the ControlNodeEvent class.

Parameters:
source - Specifies the event source.
node - The ControlNode being serialized or deserialized.
element - The org.w3c.dom.Element that stores the control attributes.
context - An XmlPersistContext object that provides serialization helper methods.
Method Detail

getXmlElement

public org.w3c.dom.Element getXmlElement()
Gets an XML element that stores the control attributes.

Returns:
An org.w3c.dom.Element instance.

getNode

public ControlNode getNode()
Gets a reference to the ControlNode being serialized or deserialized.

Returns:
A ControlNode instance.

getHandled

public boolean getHandled()
Gets a value indicating whether the event is handled.

Returns:
true if some handler has already serialized the control, otherwise false.

setHandled

public void setHandled(boolean value)
Sets a value indicating whether the event is handled.

Parameters:
value - true to indicate that the control has been serialized, otherwise false.

getContext

public XmlPersistContext getContext()
Gets an XmlPersistContext object that provides serialization helper methods.

Returns:
An XmlPersistContext instance.