public class EditCharDataCommand extends EditDataCommand
EditDataCommand.EditCommandType
Modifier and Type | Field and Description |
---|---|
protected boolean |
operationPerformed |
codeArea
Constructor and Description |
---|
EditCharDataCommand(org.exbin.deltahex.swing.CodeArea codeArea,
EditDataCommand.EditCommandType commandType,
long position) |
Modifier and Type | Method and Description |
---|---|
void |
appendEdit(char value) |
boolean |
canUndo() |
void |
dispose() |
EditDataCommand.EditCommandType |
getCommandType() |
CodeAreaCommandType |
getType()
Returns type of the command.
|
void |
redo() |
void |
undo() |
boolean |
wasReverted()
Returns true if command was already used for undo action.
|
getCaption
public EditCharDataCommand(org.exbin.deltahex.swing.CodeArea codeArea, EditDataCommand.EditCommandType commandType, long position)
public void undo() throws org.exbin.deltahex.operation.BinaryDataOperationException
org.exbin.deltahex.operation.BinaryDataOperationException
public void redo() throws org.exbin.deltahex.operation.BinaryDataOperationException
org.exbin.deltahex.operation.BinaryDataOperationException
public CodeAreaCommandType getType()
CodeAreaCommand
getType
in class EditDataCommand
public boolean canUndo()
canUndo
in interface org.exbin.deltahex.operation.BinaryDataCommand
canUndo
in class EditDataCommand
public void appendEdit(char value)
public EditDataCommand.EditCommandType getCommandType()
getCommandType
in class EditDataCommand
public boolean wasReverted()
EditDataCommand
wasReverted
in class EditDataCommand
public void dispose() throws org.exbin.deltahex.operation.BinaryDataOperationException
dispose
in interface org.exbin.deltahex.operation.BinaryDataCommand
dispose
in class org.exbin.deltahex.operation.BinaryDataAbstractCommand
org.exbin.deltahex.operation.BinaryDataOperationException