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