public class TestUndoableOperation extends java.lang.Object implements UndoableOperation
| Constructor and Description |
|---|
TestUndoableOperation(java.lang.String oldValue,
java.lang.String newValue) |
TestUndoableOperation(java.lang.String oldValue,
java.lang.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.
|
java.lang.String |
getNewValue() |
java.lang.String |
getOldValue() |
java.lang.String |
getRedoContextDescription() |
java.lang.String |
getRedoPresentationName()
A human readable description of the re-do operation (such as "Re-do edit").
|
java.lang.String |
getUndoContextDescription() |
java.lang.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 TestUndoableOperation(java.lang.String oldValue,
java.lang.String newValue)
public TestUndoableOperation(java.lang.String oldValue,
java.lang.String newValue,
boolean undoable,
boolean redoable)
public java.lang.String getOldValue()
public java.lang.String getNewValue()
public boolean canRedo()
UndoableOperationcanRedo in interface UndoableOperationpublic boolean canUndo()
UndoableOperationcanUndo in interface UndoableOperationpublic java.lang.String getRedoPresentationName()
UndoableOperationgetRedoPresentationName in interface UndoableOperationpublic java.lang.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 java.lang.String getRedoContextDescription()
getRedoContextDescription in interface UndoableOperationpublic java.lang.String getUndoContextDescription()
getUndoContextDescription in interface UndoableOperationCopyright © 2018 SAP SE. All Rights Reserved.