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 voidappendCommand(org.exbin.bined.operation.BinaryDataCommand command)voidappendCommands(java.util.Collection<org.exbin.bined.operation.BinaryDataCommand> commands)static CodeAreaCommandbuildCompoundCommand(org.exbin.bined.swing.CodeAreaCore codeArea, CodeAreaCommand... commands)booleancanUndo()voiddispose()voidexecute()java.util.List<org.exbin.bined.operation.BinaryDataCommand>getCommands()CodeAreaCommandTypegetType()Returns type of the command.booleanisEmpty()voidredo()voidundo()-
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:CodeAreaCommandReturns type of the command.- Specified by:
getTypein classCodeAreaCommand- Returns:
- command type
-
execute
public void execute() throws org.exbin.bined.operation.BinaryDataOperationException- Specified by:
executein interfaceorg.exbin.bined.operation.BinaryDataCommand- Overrides:
executein classorg.exbin.bined.operation.BinaryDataAbstractCommand- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
redo
public void redo() throws org.exbin.bined.operation.BinaryDataOperationException- Specified by:
redoin interfaceorg.exbin.bined.operation.BinaryDataCommand- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
undo
public void undo() throws org.exbin.bined.operation.BinaryDataOperationException- Specified by:
undoin interfaceorg.exbin.bined.operation.BinaryDataCommand- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
canUndo
public boolean canUndo()
- Specified by:
canUndoin interfaceorg.exbin.bined.operation.BinaryDataCommand
-
appendCommand
public void appendCommand(org.exbin.bined.operation.BinaryDataCommand command)
- Specified by:
appendCommandin interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
appendCommands
public void appendCommands(java.util.Collection<org.exbin.bined.operation.BinaryDataCommand> commands)
- Specified by:
appendCommandsin interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
getCommands
@Nonnull public java.util.List<org.exbin.bined.operation.BinaryDataCommand> getCommands()
- Specified by:
getCommandsin interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.exbin.bined.operation.BinaryDataCompoundCommand
-
dispose
public void dispose() throws org.exbin.bined.operation.BinaryDataOperationException- Specified by:
disposein interfaceorg.exbin.bined.operation.BinaryDataCommand- Overrides:
disposein classorg.exbin.bined.operation.BinaryDataAbstractCommand- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
-