public class ChapterPagesUndoableOperation extends Object implements UndoableOperation
| Constructor and Description |
|---|
ChapterPagesUndoableOperation(TypedObject chapter,
List<PageModel> oldPages,
List<PageModel> newPages) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRedo()
Returns true is the operation can be redone.
|
boolean |
canUndo()
Returns true if the operation can be undone.
|
String |
getRedoContextDescription() |
String |
getRedoPresentationName()
A human readable description of the re-do operation (such as "Re-do edit").
|
String |
getUndoContextDescription() |
String |
getUndoPresentationName()
A human readable description of the undo operation (such as "Undo edit").
|
void |
redo()
Redo the operation that has been undone.
|
void |
undo()
Undo the operation.
|
public ChapterPagesUndoableOperation(TypedObject chapter, List<PageModel> oldPages, List<PageModel> newPages)
public boolean canRedo()
UndoableOperationcanRedo in interface UndoableOperationpublic boolean canUndo()
UndoableOperationcanUndo in interface UndoableOperationpublic String getRedoContextDescription()
getRedoContextDescription in interface UndoableOperationpublic String getRedoPresentationName()
UndoableOperationgetRedoPresentationName in interface UndoableOperationpublic String getUndoContextDescription()
getUndoContextDescription in interface UndoableOperationpublic String getUndoPresentationName()
UndoableOperationgetUndoPresentationName in interface UndoableOperationpublic void redo()
throws CannotRedoException
UndoableOperationredo in interface UndoableOperationCannotRedoException - if the operation cannot be redone anymoreUndoableOperation.canRedo()public void undo()
throws CannotUndoException
UndoableOperationundo in interface UndoableOperationCannotUndoException - if the operation cannot be undone anymoreUndoableOperation.canUndo()Copyright © 2017 SAP SE. All Rights Reserved.