public class TextCompoundEdit extends CompoundEdit implements DocumentListener
editsRedoName, UndoName| Constructor and Description |
|---|
TextCompoundEdit(JTextComponent editor,
JTextFieldUndoListener listener) |
TextCompoundEdit(TextAdapter adapter,
JTextFieldUndoListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
changedUpdate(DocumentEvent e) |
JTextComponent |
getEditor() |
String |
getRedoPresentationName() |
Object |
getTargetObject() |
String |
getUndoPresentationName() |
void |
insertUpdate(DocumentEvent e) |
boolean |
isInProgress() |
void |
redo() |
void |
removeUpdate(DocumentEvent e) |
void |
stopWatchingCaretPosition() |
void |
undo() |
void |
watchCaretPosition() |
addEdit, canRedo, canUndo, die, end, getPresentationName, isSignificant, lastEdit, toStringreplaceEditpublic TextCompoundEdit(TextAdapter adapter, JTextFieldUndoListener listener)
public TextCompoundEdit(JTextComponent editor, JTextFieldUndoListener listener)
public Object getTargetObject()
public void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenerpublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic boolean isInProgress()
isInProgress in class CompoundEditpublic void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class CompoundEditCannotRedoExceptionpublic void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class CompoundEditCannotUndoExceptionpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditgetRedoPresentationName in class CompoundEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditgetUndoPresentationName in class CompoundEditpublic JTextComponent getEditor()
public void watchCaretPosition()
public void stopWatchingCaretPosition()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.