Class ChangeEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ChangeEvent
    extends java.lang.Object
    implements java.io.Serializable
    The ChangeEvent is fired each time a new ChangeDescriptor is instanciated. It offers access to the description of the change and the changed Item.
    See Also:
    ChangeDescriptor, ChangeListener, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ChangeEvent​(ChangeDescriptor descriptor)
      Creates a new ChangeEvent for the specified ChangeDescriptor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Item getChangedItem()
      Returns the Item, which was modified.
      java.lang.String getTopic()
      Returns the topic of the ChangeEvent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChangeEvent

        public ChangeEvent​(ChangeDescriptor descriptor)
        Creates a new ChangeEvent for the specified ChangeDescriptor.
        Parameters:
        descriptor - the ChangeDescriptor
    • Method Detail

      • getTopic

        public java.lang.String getTopic()
        Returns the topic of the ChangeEvent. (Which equivalent to the changetype of the ChangeDescriptor; GeneratedChangeDescriptor.getChangeType()).
        Returns:
        Returns the topic of the ChangeEvent
      • getChangedItem

        public Item getChangedItem()
        Returns the Item, which was modified. This method can return null, since not always a change is related to a Item.
        Returns:
        Returns the Item, which was modified.