public abstract class AbstractUndoableCommand extends Object implements UndoableCommand
| Constructor and Description |
|---|
AbstractUndoableCommand(ConsoleEditor editor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Stores cursor coordinates.
|
int |
getAfterColumn()
The columns the cursor was pointing after the
Command execution. |
int |
getAfterLine()
The line the cursor was pointing after the
Command execution. |
int |
getBeforeColumn()
The columns the cursor was pointing before the
Command execution. |
int |
getBeforeLine()
The line the cursor was pointing before the
Command execution. |
ConsoleEditor |
getEditor() |
void |
redo()
Executes the
Command again. |
void |
setAfterColumn(int afterColumn) |
void |
setAfterLine(int afterLine) |
void |
setBeforeColumn(int column) |
void |
setBeforeLine(int line) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoExecute, undopublic AbstractUndoableCommand(ConsoleEditor editor)
public final void execute()
public final void redo()
Command again.redo in interface UndoableCommandpublic ConsoleEditor getEditor()
public int getBeforeLine()
UndoableCommandCommand execution.getBeforeLine in interface UndoableCommandpublic void setBeforeLine(int line)
public int getBeforeColumn()
UndoableCommandCommand execution.getBeforeColumn in interface UndoableCommandpublic void setBeforeColumn(int column)
public int getAfterLine()
UndoableCommandCommand execution.getAfterLine in interface UndoableCommandpublic void setAfterLine(int afterLine)
public int getAfterColumn()
UndoableCommandCommand execution.getAfterColumn in interface UndoableCommandpublic void setAfterColumn(int afterColumn)
Copyright © 2013. All Rights Reserved.