Class AnnotationPageSegmentEvent
java.lang.Object
com.levigo.jadice.document.AbstractDocumentEvent
com.levigo.jadice.document.AbstractPageEvent
com.levigo.jadice.document.PageSegmentEvent
com.levigo.jadice.web.shared.model.annotation.AnnotationPageSegmentEvent
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
Nested ClassesModifier and TypeClassDescriptionstatic enum
Possible event type identifiers: Property related State related Mode related Action relatedNested classes/interfaces inherited from class com.levigo.jadice.document.PageSegmentEvent
PageSegmentEvent.Type
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationPageSegmentEvent
(Page page, PageSegment segment, Annotation annotation, Annotation previousState, AnnotationPageSegmentEvent.EventType eventType, Object oldValue, Object newValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the annotation concerned.Gets the event type of this event.
See the following property identifier.Gets the new value for the property, expressed as an Object.Gets the old value for the property, expressed as an Object.toString()
Methods inherited from class com.levigo.jadice.document.PageSegmentEvent
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
-
Constructor Details
-
Method Details
-
getPreviousState
-
getAnnotation
Gets the annotation concerned.- Returns:
- Annotation
-
getEventType
Gets the event type of this event.
See the following property identifier.- Returns:
- the event type
- See Also:
-
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
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
-