Class OpCodeAreaCommand
- java.lang.Object
-
- org.exbin.bined.operation.BinaryDataAbstractCommand
-
- org.exbin.bined.operation.swing.command.CodeAreaCommand
-
- org.exbin.bined.operation.swing.command.OpCodeAreaCommand
-
- All Implemented Interfaces:
org.exbin.bined.operation.BinaryDataCommand
- Direct Known Subclasses:
InsertDataCommand
,ModifyDataCommand
,RemoveDataCommand
@ParametersAreNonnullByDefault public abstract class OpCodeAreaCommand extends CodeAreaCommand
Abstract class for operation on hexadecimal document.
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeAreaOperation
operation
protected boolean
operationPerformed
-
Fields inherited from class org.exbin.bined.operation.swing.command.CodeAreaCommand
codeArea
-
-
Constructor Summary
Constructors Constructor Description OpCodeAreaCommand(org.exbin.bined.swing.CodeAreaCore codeArea)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUndo()
void
dispose()
CodeAreaOperation
getOperation()
void
redo()
void
setOperation(CodeAreaOperation operation)
void
undo()
-
Methods inherited from class org.exbin.bined.operation.swing.command.CodeAreaCommand
getCaption, getType
-
-
-
-
Field Detail
-
operation
@Nullable protected CodeAreaOperation operation
-
operationPerformed
protected boolean operationPerformed
-
-
Method Detail
-
getOperation
@Nullable public CodeAreaOperation getOperation()
-
setOperation
public void setOperation(CodeAreaOperation operation)
-
canUndo
public boolean canUndo()
-
undo
public void undo() throws org.exbin.bined.operation.BinaryDataOperationException
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
redo
public void redo() throws org.exbin.bined.operation.BinaryDataOperationException
- Throws:
org.exbin.bined.operation.BinaryDataOperationException
-
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
-
-