Class BinaryCompoundCommand
- java.lang.Object
-
- org.exbin.bined.operation.BinaryDataAbstractCommand
-
- org.exbin.bined.operation.swing.command.CodeAreaCommand
-
- org.exbin.bined.operation.swing.command.BinaryCompoundCommand
-
- All Implemented Interfaces:
org.exbin.bined.operation.BinaryDataCommand
,org.exbin.bined.operation.BinaryDataCompoundCommand
@ParametersAreNonnullByDefault public class BinaryCompoundCommand extends CodeAreaCommand implements org.exbin.bined.operation.BinaryDataCompoundCommand
Class for compound command on binary document.
-
-
Field Summary
-
Fields inherited from class org.exbin.bined.operation.swing.command.CodeAreaCommand
codeArea
-
-
Constructor Summary
Constructors Constructor Description BinaryCompoundCommand(org.exbin.bined.swing.CodeAreaCore codeArea)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendCommand(org.exbin.bined.operation.BinaryDataCommand command)
void
appendCommands(java.util.Collection<org.exbin.bined.operation.BinaryDataCommand> commands)
static CodeAreaCommand
buildCompoundCommand(org.exbin.bined.swing.CodeAreaCore codeArea, CodeAreaCommand... commands)
boolean
canUndo()
void
dispose()
void
execute()
java.util.List<org.exbin.bined.operation.BinaryDataCommand>
getCommands()
CodeAreaCommandType
getType()
Returns type of the command.boolean
isEmpty()
void
redo()
void
undo()
-
Methods inherited from class org.exbin.bined.operation.swing.command.CodeAreaCommand
getCaption
-
Methods inherited from class org.exbin.bined.operation.BinaryDataAbstractCommand
getExecutionTime, use
-
-
-
-
Method Detail
-
buildCompoundCommand
public static CodeAreaCommand buildCompoundCommand(org.exbin.bined.swing.CodeAreaCore codeArea, CodeAreaCommand... commands)
-
getType
@Nonnull public CodeAreaCommandType getType()
Description copied from class:CodeAreaCommand
Returns type of the command.- Specified by:
getType
in classCodeAreaCommand
- Returns:
- command type
-
execute
public void execute() throws org.exbin.bined.operation.BinaryDataOperationException
- Specified by:
execute
in interfaceorg.exbin.bined.operation.BinaryDataCommand
- Overrides:
execute
in classorg.exbin.bined.operation.BinaryDataAbstractCommand
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
redo
public void redo() throws org.exbin.bined.operation.BinaryDataOperationException
- Specified by:
redo
in interfaceorg.exbin.bined.operation.BinaryDataCommand
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
undo
public void undo() throws org.exbin.bined.operation.BinaryDataOperationException
- Specified by:
undo
in interfaceorg.exbin.bined.operation.BinaryDataCommand
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
canUndo
public boolean canUndo()
- Specified by:
canUndo
in interfaceorg.exbin.bined.operation.BinaryDataCommand
-
appendCommand
public void appendCommand(org.exbin.bined.operation.BinaryDataCommand command)
- Specified by:
appendCommand
in interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
appendCommands
public void appendCommands(java.util.Collection<org.exbin.bined.operation.BinaryDataCommand> commands)
- Specified by:
appendCommands
in interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
getCommands
@Nonnull public java.util.List<org.exbin.bined.operation.BinaryDataCommand> getCommands()
- Specified by:
getCommands
in interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
dispose
public void dispose() throws org.exbin.bined.operation.BinaryDataOperationException
- Specified by:
dispose
in interfaceorg.exbin.bined.operation.BinaryDataCommand
- Overrides:
dispose
in classorg.exbin.bined.operation.BinaryDataAbstractCommand
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
-