Class AnnotationPropertyEdit

  • All Implemented Interfaces:
    com.pspdfkit.undo.edit.Edit

    
    public final class AnnotationPropertyEdit
    extends AnnotationEdit
                        

    Annotation edit performed on the existing annotation property.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getPropertyKey() Key of the property that was edited.
      final Object getOldValue() Old value of the property, or null if no value was previously set.
      final Object getNewValue() New value of the property, or null if that was set afterwards.
      • Methods inherited from class java.lang.Object

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

      • AnnotationPropertyEdit

        AnnotationPropertyEdit(Annotation annotation, Integer propertyKey, Object oldValue, Object newValue)
        Creates an object representing a single property edit performed on the annotation.
        Parameters:
        annotation - Annotation whose property was changed.
        propertyKey - Key of the property that was edited.
        oldValue - Old value of the property, or null if no value was previously set.
        newValue - New value of the property, or null if that was set afterwards.
    • Method Detail

      • getPropertyKey

         final Integer getPropertyKey()

        Key of the property that was edited. Intended for internal use only! Do not rely on this value as it is subject to change.

      • getOldValue

         final Object getOldValue()

        Old value of the property, or null if no value was previously set.

      • getNewValue

         final Object getNewValue()

        New value of the property, or null if that was set afterwards.