public class TestUndoableOperation extends Object implements UndoableOperation
| Constructor and Description |
|---|
TestUndoableOperation(String oldValue,
String newValue) |
TestUndoableOperation(String oldValue,
String newValue,
boolean undoable,
boolean redoable) |
| 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 |
getNewValue() |
String |
getOldValue() |
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 String getOldValue()
public String getNewValue()
public boolean canRedo()
UndoableOperationcanRedo in interface UndoableOperationpublic boolean canUndo()
UndoableOperationcanUndo in interface UndoableOperationpublic String getRedoPresentationName()
UndoableOperationgetRedoPresentationName 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()public String getRedoContextDescription()
getRedoContextDescription in interface UndoableOperationpublic String getUndoContextDescription()
getUndoContextDescription in interface UndoableOperationCopyright © 2017 SAP SE. All Rights Reserved.