miSim

misim.editor
Class Undoable

java.lang.Object
  |
  +--misim.editor.Undoable

public class Undoable
extends java.lang.Object

The undoable class is used to store editor events that may subsequently be undone.


Field Summary
static int CHAR_ADDED
           
static int LINE_ADDED
           
static int LINE_DELETED
           
static int LINE_REMOVED
           
static int LINE_SPLIT
           
static int NONE
           
static int TEXT_ADDED
           
static int TEXT_DELETED
           
static int TEXT_REMOVED
           
 
Constructor Summary
Undoable(UndoIF owner, int eventId, int type, java.lang.Object data, int row, int col)
           
 
Method Summary
 void redo(CursorPos cursor)
           
 void undo(CursorPos cursor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE

CHAR_ADDED

public static final int CHAR_ADDED

TEXT_ADDED

public static final int TEXT_ADDED

TEXT_REMOVED

public static final int TEXT_REMOVED

TEXT_DELETED

public static final int TEXT_DELETED

LINE_ADDED

public static final int LINE_ADDED

LINE_SPLIT

public static final int LINE_SPLIT

LINE_REMOVED

public static final int LINE_REMOVED

LINE_DELETED

public static final int LINE_DELETED
Constructor Detail

Undoable

public Undoable(UndoIF owner,
                int eventId,
                int type,
                java.lang.Object data,
                int row,
                int col)
Method Detail

undo

public void undo(CursorPos cursor)

redo

public void redo(CursorPos cursor)

miSim