Package org.exbin.bined.operation
Interface BinaryDataCommand
-
- All Known Subinterfaces:
BinaryDataCompoundCommand
- All Known Implementing Classes:
BinaryDataAbstractCommand
public interface BinaryDataCommand
Interface for code area command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canUndo()
Returns true if command support undo operation.void
dispose()
Disposes command.void
execute()
Performs operation on given document.java.lang.String
getCaption()
Returns caption as text.java.util.Optional<java.util.Date>
getExecutionTime()
Returns time of command execution.void
redo()
Performs redo on given document.void
undo()
Performs undo operation on given document.void
use()
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 BinaryDataOperationException
Performs 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 BinaryDataOperationException
Disposes command.- Throws:
BinaryDataOperationException
- for operation handling issues
-
getExecutionTime
@Nonnull java.util.Optional<java.util.Date> getExecutionTime()
Returns time of command execution.- Returns:
- time
-
-