Package com.pspdfkit.undo
Class EditingChange
-
- All Implemented Interfaces:
public final class EditingChange
Change that happened because of an operation performed by the document editor that can be undone/redone.
Constructs a new editing change.
-
-
Field Summary
Fields Modifier and Type Field Description private final EditingOperation
editingOperation
private final Integer
affectedPageIndex
private final Integer
pageIndexDestination
private final Integer
pageReferenceSourceIndex
-
Constructor Summary
Constructors Constructor Description EditingChange(EditingOperation editingOperation, Integer affectedPageIndex, Integer pageIndexDestination, Integer pageReferenceSourceIndex)
-
Method Summary
Modifier and Type Method Description final EditingOperation
getEditingOperation()
The operation type. final Integer
getAffectedPageIndex()
Gets the affected page index. final Integer
getPageIndexDestination()
Gets the page index destination if it was a move change. final Integer
getPageReferenceSourceIndex()
If it was a reference insertion change, the index origin of the page reference. -
-
Constructor Detail
-
EditingChange
EditingChange(EditingOperation editingOperation, Integer affectedPageIndex, Integer pageIndexDestination, Integer pageReferenceSourceIndex)
-
-
Method Detail
-
getEditingOperation
final EditingOperation getEditingOperation()
The operation type.
-
getAffectedPageIndex
@IntRange(from = 0) final Integer getAffectedPageIndex()
Gets the affected page index.
-
getPageIndexDestination
@IntRange(from = 0) final Integer getPageIndexDestination()
Gets the page index destination if it was a move change.
-
getPageReferenceSourceIndex
@IntRange(from = 0) final Integer getPageReferenceSourceIndex()
If it was a reference insertion change, the index origin of the page reference.
-
-
-
-