Class AnnotationPropertyEdit
-
- All Implemented Interfaces:
-
com.pspdfkit.undo.edit.Edit
public final class AnnotationPropertyEdit extends AnnotationEdit
Annotation edit performed on the existing annotation property.
-
-
Constructor Summary
Constructors Constructor Description AnnotationPropertyEdit(Annotation annotation, Integer propertyKey, Object oldValue, Object newValue)
Creates an object representing a single property edit performed on the annotation. AnnotationPropertyEdit(Integer pageIndex, Integer objectNumber, Integer propertyKey, Object oldValue, Object newValue)
-
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.-
-
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, ornull
if no value was previously set.newValue
- New value of the property, ornull
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.
-
-
-
-