Searched refs:UndoableEdit (Results 1 - 13 of 13) sorted by relevance

/openjdk10/jdk/src/java.desktop/share/classes/sun/swing/text/
H A DUndoableEditLockSupport.java27 import javax.swing.undo.UndoableEdit;
30 * UndoableEdit support for undo/redo actions synchronization
33 public interface UndoableEditLockSupport extends UndoableEdit {
35 * lock the UndoableEdit for threadsafe undo/redo
40 * unlock the UndoableEdit
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/undo/
H A DUndoableEdit.java31 * An <code>UndoableEdit</code> represents an edit. The edit may
34 * <code>UndoableEdit</code> is designed to be used with the
35 * <code>UndoManager</code>. As <code>UndoableEdit</code>s are generated
37 * the <code>UndoManager</code>. When an <code>UndoableEdit</code>
68 public interface UndoableEdit { interface
99 * <code>UndoableEdit</code> has been marked as dead it can no longer
115 * Adds an <code>UndoableEdit</code> to this <code>UndoableEdit</code>.
121 * a word. In this case, the <code>UndoableEdit</code> would
142 public boolean addEdit(UndoableEdit anEdi
[all...]
H A DCompoundEdit.java43 * The collection of <code>UndoableEdit</code>s
46 protected Vector<UndoableEdit> edits;
54 edits = new Vector<UndoableEdit>();
66 UndoableEdit e = edits.elementAt(i);
73 * <code>UndoableEdit</code>s in the order in
78 Enumeration<UndoableEdit> cursor = edits.elements();
85 * Returns the last <code>UndoableEdit</code> in
89 * @return the last {@code UndoableEdit} in {@code edits},
92 protected UndoableEdit lastEdit() {
108 UndoableEdit
[all...]
H A DUndoManager.java123 * the superclass behavior is used for all <code>UndoableEdit</code>
180 for (UndoableEdit e : edits) {
183 edits = new Vector<UndoableEdit>();
252 UndoableEdit e = edits.elementAt(i);
302 protected UndoableEdit editToBeUndone() {
305 UndoableEdit edit = edits.elementAt(--i);
321 protected UndoableEdit editToBeRedone() {
326 UndoableEdit edit = edits.elementAt(i++);
343 protected void undoTo(UndoableEdit edit) throws CannotUndoException {
346 UndoableEdit nex
[all...]
H A DAbstractUndoableEdit.java32 * An abstract implementation of <code>UndoableEdit</code>,
39 public class AbstractUndoableEdit implements UndoableEdit, Serializable {
168 * @see UndoableEdit#addEdit
170 public boolean addEdit(UndoableEdit anEdit) {
180 * @see UndoableEdit#replaceEdit
182 public boolean replaceEdit(UndoableEdit anEdit) {
190 * @see UndoableEdit#isSignificant
H A DUndoableEditSupport.java32 * A support class used for managing <code>UndoableEdit</code> listeners.
114 protected void _postEdit(UndoableEdit e) {
131 public synchronized void postEdit(UndoableEdit e) {
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/event/
H A DUndoableEditEvent.java46 private UndoableEdit myEdit;
53 * @param edit an UndoableEdit object
55 public UndoableEditEvent(Object source, UndoableEdit edit) {
63 * @return the UndoableEdit object encapsulating the edit
65 public UndoableEdit getEdit() {
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/text/
H A DStringContent.java93 * @return an UndoableEdit object for undoing
97 public UndoableEdit insertString(int where, String str) throws BadLocationException {
114 * @return an UndoableEdit object for undoing
118 public UndoableEdit remove(int where, int nitems) throws BadLocationException {
123 UndoableEdit edit = new RemoveUndo(where, removedString);
449 * UndoableEdit created for removes.
H A DGapContent.java34 import javax.swing.undo.UndoableEdit;
124 * @return an UndoableEdit object for undoing
128 public UndoableEdit insertString(int where, String str) throws BadLocationException {
142 * @return an UndoableEdit object for undoing
146 public UndoableEdit remove(int where, int nitems) throws BadLocationException {
151 UndoableEdit edit = new RemoveUndo(where, removedString);
915 * UndoableEdit created for removes.
H A DGapVector.java29 import javax.swing.undo.UndoableEdit;
H A DAbstractDocument.java480 * Undo/Redo operations performed on the <code>UndoableEdit</code>
621 UndoableEdit u = data.remove(offs, len);
732 UndoableEdit u = data.insertString(offs, str);
1601 * mutations return an UndoableEdit implementation.
1634 public UndoableEdit insertString(int where, String str) throws BadLocationException;
1648 public UndoableEdit remove(int where, int nitems) throws BadLocationException;
2767 public boolean addEdit(UndoableEdit anEdit) {
2965 UndoableEdit, UndoableEditLockSupport
2998 public boolean addEdit(UndoableEdit anEdit) {
3003 public boolean replaceEdit(UndoableEdit anEdi
[all...]
H A DDefaultStyledDocument.java47 import javax.swing.undo.UndoableEdit;
145 UndoableEdit cEdit = c.insertString(0, sb.toString());
208 UndoableEdit cEdit = c.insertString(offset, sb.toString());
312 UndoableEdit ue = null;
1733 * Creates the UndoableEdit record for the edits made
2526 * An UndoableEdit used to remember AttributeSet changes to an
2592 * UndoableEdit for changing the resolve parent of an Element.
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/text/html/
H A DHTMLDocument.java1694 UndoableEdit u = getContent().remove(start - 1, end - start);
1726 UndoableEdit u = getContent().remove(start, end - start);
2539 UndoableEdit u = getContent().remove(length - 1, 1);

Completed in 85 milliseconds