com.mindfusion.diagramming
Class SerializeTagEvent

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

public class SerializeTagEvent
extends java.util.EventObject

Contains information passed to the tag serialization related events in DiagramListener.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SerializeTagEvent(java.lang.Object source, java.lang.Object item, java.lang.Object tag, org.w3c.dom.Element tagElement, XmlPersistContext context)
          Initializes a new instance of the ItemTagEvent class.
 
Method Summary
 XmlPersistContext getContext()
           
 boolean getHandled()
           
 java.lang.Object getItem()
          Gets the object whose tag should be serialized.
 java.lang.Object getTag()
          Gets the tag object that should be serialized.
 org.w3c.dom.Element getTagElement()
          Gets XML element under which the tag data should be written or from which the tag must be loaded.
 void setHandled(boolean value)
           
 void setTag(java.lang.Object value)
          Sets the tag after deserializing it.
 
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

SerializeTagEvent

public SerializeTagEvent(java.lang.Object source,
                         java.lang.Object item,
                         java.lang.Object tag,
                         org.w3c.dom.Element tagElement,
                         XmlPersistContext context)
Initializes a new instance of the ItemTagEvent class.

Parameters:
source - The sender of this event.
item - The object whose tag should be serialized.
tag - The tag value.
tagElement - The XML element where the tag should be saved or loaded.
context - An XmlPersistContext object providing more information about the serialization process.
Method Detail

getItem

public java.lang.Object getItem()
Gets the object whose tag should be serialized.

Returns:
An object that refers to an DiagramItem, Diagram, Group or AnchorPoint.

getTag

public java.lang.Object getTag()
Gets the tag object that should be serialized.

Returns:
The Tag object.

setTag

public void setTag(java.lang.Object value)
Sets the tag after deserializing it.

Parameters:
value - The object that should be used as item's tag.

getTagElement

public org.w3c.dom.Element getTagElement()
Gets XML element under which the tag data should be written or from which the tag must be loaded.

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

getContext

public XmlPersistContext getContext()

getHandled

public boolean getHandled()

setHandled

public void setHandled(boolean value)