public interface BinaryDataUndoHandler
Modifier and Type | Method and Description |
---|---|
void |
addCommand(BinaryDataCommand command)
Adds new step into command list without executing it.
|
void |
addUndoUpdateListener(BinaryDataUndoUpdateListener listener) |
boolean |
canRedo() |
boolean |
canUndo() |
void |
clear() |
void |
doSync()
Performs revert to sync point.
|
void |
execute(BinaryDataCommand command)
Adds new step into command list.
|
java.util.List<BinaryDataCommand> |
getCommandList() |
long |
getCommandPosition() |
long |
getMaximumUndo() |
long |
getSyncPoint() |
long |
getUndoMaximumSize() |
long |
getUsedSize() |
void |
performRedo()
Performs single redo step.
|
void |
performRedo(int count)
Performs multiple redo step.
|
void |
performUndo()
Performs single undo step.
|
void |
performUndo(int count)
Performs multiple undo step.
|
void |
removeUndoUpdateListener(BinaryDataUndoUpdateListener listener) |
void |
setCommandPosition(long targetPosition)
Performs undo or redo operation to reach given position.
|
void |
setSyncPoint() |
void |
setSyncPoint(long syncPoint) |
boolean canRedo()
boolean canUndo()
void clear()
void doSync() throws BinaryDataOperationException
BinaryDataOperationException
- for operation handling issuesvoid execute(BinaryDataCommand command) throws BinaryDataOperationException
command
- commandBinaryDataOperationException
- for operation handling issuesvoid addCommand(BinaryDataCommand command)
command
- commandjava.util.List<BinaryDataCommand> getCommandList()
long getCommandPosition()
long getMaximumUndo()
long getSyncPoint()
long getUndoMaximumSize()
long getUsedSize()
void performRedo() throws BinaryDataOperationException
BinaryDataOperationException
- for operation handling issuesvoid performRedo(int count) throws BinaryDataOperationException
count
- count of stepsBinaryDataOperationException
- for operation handling issuesvoid performUndo() throws BinaryDataOperationException
BinaryDataOperationException
- for operation handling issuesvoid performUndo(int count) throws BinaryDataOperationException
count
- count of stepsBinaryDataOperationException
- for operation handling issuesvoid setCommandPosition(long targetPosition) throws BinaryDataOperationException
targetPosition
- desired positionBinaryDataOperationException
- for operation handling issuesvoid setSyncPoint(long syncPoint)
void setSyncPoint()
void addUndoUpdateListener(BinaryDataUndoUpdateListener listener)
void removeUndoUpdateListener(BinaryDataUndoUpdateListener listener)