com.levigo.jadice.annotation
Class AnnotationPageSegmentEvent

java.lang.Object
  extended by com.levigo.jadice.document.AbstractDocumentEvent
      extended by com.levigo.jadice.document.AbstractPageEvent
          extended by com.levigo.jadice.document.PageSegmentEvent
              extended by com.levigo.jadice.annotation.AnnotationPageSegmentEvent
All Implemented Interfaces:
Cloneable

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.


Nested Class Summary
static class AnnotationPageSegmentEvent.EventType
          Possible event type identifiers: Property related State related Mode related Action related
 
Nested classes/interfaces inherited from class com.levigo.jadice.document.PageSegmentEvent
PageSegmentEvent.Type
 
Method Summary
 Annotation getAnnotation()
          Gets the annotation concerned.
 AnnotationPageSegmentEvent.EventType getEventType()
          Gets the event type of this event.
See the following property identifier.
 Object getNewValue()
          Gets the new value for the property, expressed as an Object.
 Object getOldValue()
          Gets the old value for the property, expressed as an Object.
 String toString()
           
 
Methods inherited from class com.levigo.jadice.document.PageSegmentEvent
clone, getDamage, getDocument, getLayer, getPageSegment, getType, setDamage, setLayer, setPageSegment, setType
 
Methods inherited from class com.levigo.jadice.document.AbstractPageEvent
getPage, setPage
 
Methods inherited from class com.levigo.jadice.document.AbstractDocumentEvent
setDocument
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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:
AnnotationPageSegmentEvent.EventType

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:
Object.toString()


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.