public class BulkUndoableOperation extends java.lang.Object implements UndoableOperation
| Constructor and Description |
|---|
BulkUndoableOperation(java.util.List<UndoableOperation> operations) |
| 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.util.List<UndoableOperation> |
getOperations() |
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").
|
boolean |
isShowOperationCount() |
void |
redo()
Redo the operation that has been undone.
|
void |
setShowOperationCount(boolean showOperationCount) |
void |
undo()
Undo the operation.
|
public BulkUndoableOperation(java.util.List<UndoableOperation> operations)
public void setShowOperationCount(boolean showOperationCount)
public boolean isShowOperationCount()
public java.util.List<UndoableOperation> getOperations()
public boolean canUndo()
UndoableOperationcanUndo in interface UndoableOperationpublic boolean canRedo()
UndoableOperationcanRedo in interface UndoableOperationpublic java.lang.String getUndoPresentationName()
UndoableOperationgetUndoPresentationName in interface UndoableOperationpublic java.lang.String getRedoPresentationName()
UndoableOperationgetRedoPresentationName in interface UndoableOperationpublic void undo()
throws CannotUndoException
UndoableOperationundo in interface UndoableOperationCannotUndoException - if the operation cannot be undone anymoreUndoableOperation.canUndo()public void redo()
throws CannotRedoException
UndoableOperationredo in interface UndoableOperationCannotRedoException - if the operation cannot be redone anymoreUndoableOperation.canRedo()public java.lang.String getRedoContextDescription()
getRedoContextDescription in interface UndoableOperationpublic java.lang.String getUndoContextDescription()
getUndoContextDescription in interface UndoableOperationCopyright © 2018 SAP SE. All Rights Reserved.