Searched refs:anEdit (Results 1 - 5 of 5) sorted by relevance

/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/undo/
H A DUndoableEdit.java125 * A return value of true indicates <code>anEdit</code> was incorporated
126 * into this edit. A return value of false indicates <code>anEdit</code>
130 * and is being given a chance to incorporate <code>anEdit</code>
133 * <p>If true is returned, from now on <code>anEdit</code> must return
138 * @param anEdit the edit to be added
139 * @return true if <code>anEdit</code> may be incorporated into this
142 public boolean addEdit(UndoableEdit anEdit); argument
146 * <code>anEdit</code>. This method is used by <code>CompoundEdit</code>
148 * <code>anEdit</code> could not be added to the current edit
152 * <p>This message is the opposite of addEdit--anEdit ha
164 replaceEdit(UndoableEdit anEdit) argument
[all...]
H A DCompoundEdit.java118 * accepts <code>anEdit</code> and returns true.
121 * is given a chance to <code>addEdit(anEdit)</code>.
122 * If it refuses (returns false), <code>anEdit</code> is
124 * If <code>anEdit</code> returns false here,
127 * @param anEdit the edit to be added
131 public boolean addEdit(UndoableEdit anEdit) { argument
143 edits.addElement(anEdit);
145 else if (!last.addEdit(anEdit)) {
146 if (anEdit.replaceEdit(last)) {
149 edits.addElement(anEdit);
[all...]
H A DAbstractUndoableEdit.java165 * @param anEdit the edit to be added
170 public boolean addEdit(UndoableEdit anEdit) { argument
177 * @param anEdit the edit to replace
182 public boolean replaceEdit(UndoableEdit anEdit) { argument
H A DUndoManager.java533 private UndoableEditLockSupport getEditLockSupport(UndoableEdit anEdit) { argument
534 return anEdit instanceof UndoableEditLockSupport ?
535 (UndoableEditLockSupport)anEdit : null;
565 * @param anEdit the edit to be added
566 * @return true if <code>anEdit</code> can be incorporated into this
571 public synchronized boolean addEdit(UndoableEdit anEdit) { argument
578 retVal = super.addEdit(anEdit);
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/text/
H A DAbstractDocument.java2764 * @param anEdit a document edit record
2767 public boolean addEdit(UndoableEdit anEdit) { argument
2784 if ((changeLookup != null) && (anEdit instanceof DocumentEvent.ElementChange)) {
2785 DocumentEvent.ElementChange ec = (DocumentEvent.ElementChange) anEdit;
2788 return super.addEdit(anEdit);
2998 public boolean addEdit(UndoableEdit anEdit) { argument
2999 return dde.addEdit(anEdit);
3003 public boolean replaceEdit(UndoableEdit anEdit) { argument
3004 return dde.replaceEdit(anEdit);

Completed in 53 milliseconds