Class ItemChangeUndoableOperation
java.lang.Object
de.hybris.platform.cockpit.model.undo.impl.ItemChangeUndoableOperation
- All Implemented Interfaces:
UndoableOperation
An undo-able operation representing changing value of a property of an item.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected ObjectValueContainerprotected TypedObjectprotected Stringprotected ObjectValueContainer -
Constructor Summary
ConstructorsConstructorDescriptionItemChangeUndoableOperation(TypedObject typedObject, ObjectValueContainer valueContainer) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRedo()Returns true is the operation can be redone.booleancanUndo()Returns true if the operation can be undone.A human readable description of the re-do operation (such as "Re-do edit").protected ObjectValueContainerA human readable description of the undo operation (such as "Undo edit").voidredo()Redo the operation that has been undone.voidundo()Undo the operation.
-
Field Details
-
typedObject
-
valueContainer
-
redoValueContainer
-
undoPresentationName
-
redoPresentationName
-
-
Constructor Details
-
ItemChangeUndoableOperation
-
-
Method Details
-
canUndo
public boolean canUndo()Description copied from interface:UndoableOperationReturns true if the operation can be undone. May return false if in the meantime the object model is in a state that this operation cannot be made undone anymore.- Specified by:
canUndoin interfaceUndoableOperation- Returns:
- true is the operation can be undone, false otherwise
-
canRedo
public boolean canRedo()Description copied from interface:UndoableOperationReturns true is the operation can be redone. May return false if in the meantime the object model is in a state that this operation cannot be made redone. Note that you don't have to keep track if the operation has been undone.- Specified by:
canRedoin interfaceUndoableOperation- Returns:
- true is the operation can be redone, false otherwise
-
getUndoPresentationName
Description copied from interface:UndoableOperationA human readable description of the undo operation (such as "Undo edit").- Specified by:
getUndoPresentationNamein interfaceUndoableOperation- Returns:
- human readable description of the undo operation (such as "Undo edit")
-
getRedoPresentationName
Description copied from interface:UndoableOperationA human readable description of the re-do operation (such as "Re-do edit").- Specified by:
getRedoPresentationNamein interfaceUndoableOperation- Returns:
- human readable description of the re-do operation (such as "Re-do edit")
-
undo
Description copied from interface:UndoableOperationUndo the operation.- Specified by:
undoin interfaceUndoableOperation- Throws:
CannotUndoException- if the operation cannot be undone anymore- See Also:
-
redo
Description copied from interface:UndoableOperationRedo the operation that has been undone.- Specified by:
redoin interfaceUndoableOperation- Throws:
CannotRedoException- if the operation cannot be redone anymore- See Also:
-
getRedoValueContainer
-
getUndoContextDescription
- Specified by:
getUndoContextDescriptionin interfaceUndoableOperation
-
getRedoContextDescription
- Specified by:
getRedoContextDescriptionin interfaceUndoableOperation
-