Class AnnotationPageSegmentEvent


public class AnnotationPageSegmentEvent extends PageSegmentEvent
A semantic event which indicates the occurrence of annotation changes. This high-level event encapsulates information about the annotation changed and which type of change occurred and for annotation property changes the old and new value. If the new value is a primitive type (such as int or boolean) it must be wrapped as the corresponding java.lang.* Object type (such as Integer or Boolean). Null values may be provided for the old and the new values if their true values are not known.

The event is passed to a PageListener or DocumentListener object that is registered to receive such events using the Document.addDocumentListener(DocumentListener) or the Page.addPageListener(PageListener) method.

  • Method Details

    • getAnnotation

      public Annotation getAnnotation()
      Gets the annotation concerned.
      Returns:
      Annotation
    • getEventType

      public AnnotationPageSegmentEvent.EventType getEventType()
      Gets the event type of this event.
      See the following property identifier.
      Returns:
      the event type
      See Also:
    • getNewValue

      public Object getNewValue()
      Gets the new value for the property, expressed as an Object.
      Returns:
      The new value for the property, expressed as an Object. May be null if multiple properties have changed or if mode or state changes happens.
    • getOldValue

      public Object getOldValue()
      Gets the old value for the property, expressed as an Object.
      Returns:
      The old value for the property, expressed as an Object. May be null if multiple properties have changed or if mode or state changes happens.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: