public class ScriptChangeHandler extends Object implements UndoableEditListener, CaretListener
| Constructor and Description |
|---|
ScriptChangeHandler(AtomicUndoManager undoMgr) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGosuEditorUndoItem(UndoableEditEvent e) |
void |
caretUpdate(CaretEvent e) |
void |
establishUndoableEditListener(GosuEditor editor) |
void |
establishUndoableEditListener(JTextComponent editor) |
int |
getAfter() |
int |
getBefore() |
JTextComponent |
getEditor() |
boolean |
isDirty() |
boolean |
isPaused() |
protected void |
setDirty(boolean bDirty) |
protected void |
setPaused(boolean bPaused) |
void |
undoableEditHappened(UndoableEditEvent e) |
public ScriptChangeHandler(AtomicUndoManager undoMgr)
public void establishUndoableEditListener(GosuEditor editor)
public void establishUndoableEditListener(JTextComponent editor)
public void undoableEditHappened(UndoableEditEvent e)
undoableEditHappened in interface UndoableEditListenerpublic void caretUpdate(CaretEvent e)
caretUpdate in interface CaretListenerpublic int getBefore()
public int getAfter()
protected void setDirty(boolean bDirty)
public boolean isDirty()
protected void setPaused(boolean bPaused)
public boolean isPaused()
public JTextComponent getEditor()
protected void addGosuEditorUndoItem(UndoableEditEvent e)
Copyright © 2018. All rights reserved.