Package editor
Class ScriptChangeHandler
- java.lang.Object
-
- editor.ScriptChangeHandler
-
- All Implemented Interfaces:
EventListener,CaretListener,UndoableEditListener
public class ScriptChangeHandler extends Object implements UndoableEditListener, CaretListener
-
-
Constructor Summary
Constructors Constructor Description ScriptChangeHandler(AtomicUndoManager undoMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddEditorUndoItem(UndoableEditEvent e)voidcaretUpdate(CaretEvent e)voidestablishUndoableEditListener(EditorHost editor)voidestablishUndoableEditListener(JTextComponent editor)intgetAfter()intgetBefore()JTextComponentgetEditor()booleanisDirty()booleanisPaused()protected voidsetDirty(boolean bDirty)protected voidsetPaused(boolean bPaused)voidundoableEditHappened(UndoableEditEvent e)
-
-
-
Constructor Detail
-
ScriptChangeHandler
public ScriptChangeHandler(AtomicUndoManager undoMgr)
-
-
Method Detail
-
establishUndoableEditListener
public void establishUndoableEditListener(EditorHost editor)
-
establishUndoableEditListener
public void establishUndoableEditListener(JTextComponent editor)
-
undoableEditHappened
public void undoableEditHappened(UndoableEditEvent e)
- Specified by:
undoableEditHappenedin interfaceUndoableEditListener
-
caretUpdate
public void caretUpdate(CaretEvent e)
- Specified by:
caretUpdatein interfaceCaretListener
-
getBefore
public int getBefore()
-
getAfter
public int getAfter()
-
setDirty
protected void setDirty(boolean bDirty)
-
isDirty
public boolean isDirty()
-
setPaused
protected void setPaused(boolean bPaused)
-
isPaused
public boolean isPaused()
-
getEditor
public JTextComponent getEditor()
-
addEditorUndoItem
protected void addEditorUndoItem(UndoableEditEvent e)
-
-