public class ItemChangeUndoableOperation extends java.lang.Object implements UndoableOperation
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
redoPresentationName |
protected ObjectValueContainer |
redoValueContainer |
protected TypedObject |
typedObject |
protected java.lang.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.
|
java.lang.String |
getRedoContextDescription() |
java.lang.String |
getRedoPresentationName()
A human readable description of the re-do operation (such as "Re-do edit").
|
protected ObjectValueContainer |
getRedoValueContainer() |
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.
|
protected TypedObject typedObject
protected ObjectValueContainer valueContainer
protected ObjectValueContainer redoValueContainer
protected java.lang.String undoPresentationName
protected java.lang.String redoPresentationName
public ItemChangeUndoableOperation(TypedObject typedObject, ObjectValueContainer valueContainer)
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()protected ObjectValueContainer getRedoValueContainer()
public java.lang.String getUndoContextDescription()
getUndoContextDescription in interface UndoableOperationpublic java.lang.String getRedoContextDescription()
getRedoContextDescription in interface UndoableOperationCopyright © 2018 SAP SE. All Rights Reserved.