public class ItemChangeUndoableOperation extends Object implements UndoableOperation
| Modifier and Type | Field and Description |
|---|---|
protected String |
redoPresentationName |
protected ObjectValueContainer |
redoValueContainer |
protected TypedObject |
typedObject |
protected String |
undoPresentationName |
protected ObjectValueContainer |
valueContainer |
| Constructor and Description |
|---|
ItemChangeUndoableOperation(TypedObject typedObject,
ObjectValueContainer valueContainer) |
| 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").
|
protected ObjectValueContainer |
getRedoValueContainer() |
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.
|
protected TypedObject typedObject
protected ObjectValueContainer valueContainer
protected ObjectValueContainer redoValueContainer
protected String undoPresentationName
protected String redoPresentationName
public ItemChangeUndoableOperation(TypedObject typedObject, ObjectValueContainer valueContainer)
public boolean canUndo()
UndoableOperationcanUndo in interface UndoableOperationpublic boolean canRedo()
UndoableOperationcanRedo in interface UndoableOperationpublic String getUndoPresentationName()
UndoableOperationgetUndoPresentationName in interface UndoableOperationpublic 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()protected ObjectValueContainer getRedoValueContainer()
public String getUndoContextDescription()
getUndoContextDescription in interface UndoableOperationpublic String getRedoContextDescription()
getRedoContextDescription in interface UndoableOperationCopyright © 2017 SAP SE. All Rights Reserved.