Package org.exbin.bined.operation
Interface BinaryDataCommand
-
- All Known Subinterfaces:
BinaryDataCompoundCommand
- All Known Implementing Classes:
BinaryDataAbstractCommand
public interface BinaryDataCommandInterface for code area command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanUndo()Returns true if command support undo operation.voiddispose()Disposes command.voidexecute()Performs operation on given document.java.lang.StringgetCaption()Returns caption as text.java.util.Optional<java.util.Date>getExecutionTime()Returns time of command execution.voidredo()Performs redo on given document.voidundo()Performs undo operation on given document.voiduse()Performs update of command use information.
-
-
-
Method Detail
-
getCaption
@Nonnull java.lang.String getCaption()
Returns caption as text.- Returns:
- text caption
-
execute
void execute() throws BinaryDataOperationExceptionPerforms operation on given document.- Throws:
BinaryDataOperationException- for operation handling issues
-
use
void use()
Performs update of command use information.
-
redo
void redo() throws BinaryDataOperationException
Performs redo on given document.- Throws:
BinaryDataOperationException- for operation handling issues
-
undo
void undo() throws BinaryDataOperationException
Performs undo operation on given document.- Throws:
BinaryDataOperationException- for operation handling issues
-
canUndo
boolean canUndo()
Returns true if command support undo operation.- Returns:
- true if undo supported
-
dispose
void dispose() throws BinaryDataOperationExceptionDisposes command.- Throws:
BinaryDataOperationException- for operation handling issues
-
getExecutionTime
@Nonnull java.util.Optional<java.util.Date> getExecutionTime()
Returns time of command execution.- Returns:
- time
-
-