Class InsertDataCommand
- java.lang.Object
-
- org.exbin.bined.operation.BinaryDataAbstractCommand
-
- org.exbin.bined.operation.swing.command.CodeAreaCommand
-
- org.exbin.bined.operation.swing.command.OpCodeAreaCommand
-
- org.exbin.bined.operation.swing.command.InsertDataCommand
-
- All Implemented Interfaces:
org.exbin.bined.operation.BinaryDataCommand
@ParametersAreNonnullByDefault public class InsertDataCommand extends OpCodeAreaCommand
Command for inserting data.
-
-
Field Summary
-
Fields inherited from class org.exbin.bined.operation.swing.command.OpCodeAreaCommand
operation, operationPerformed
-
Fields inherited from class org.exbin.bined.operation.swing.command.CodeAreaCommand
codeArea
-
-
Constructor Summary
Constructors Constructor Description InsertDataCommand(org.exbin.bined.swing.CodeAreaCore codeArea, long position, org.exbin.auxiliary.paged_data.EditableBinaryData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeAreaCommandType
getType()
Returns type of the command.void
redo()
void
undo()
-
Methods inherited from class org.exbin.bined.operation.swing.command.OpCodeAreaCommand
canUndo, dispose, getOperation, setOperation
-
Methods inherited from class org.exbin.bined.operation.swing.command.CodeAreaCommand
getCaption
-
-
-
-
Method Detail
-
getType
@Nonnull public CodeAreaCommandType getType()
Description copied from class:CodeAreaCommand
Returns type of the command.- Specified by:
getType
in classCodeAreaCommand
- Returns:
- command type
-
redo
public void redo() throws org.exbin.bined.operation.BinaryDataOperationException
- Specified by:
redo
in interfaceorg.exbin.bined.operation.BinaryDataCommand
- Overrides:
redo
in classOpCodeAreaCommand
- 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
- Overrides:
undo
in classOpCodeAreaCommand
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
-