public synchronized void syntheticUnbind() { boundTextComponent.removePropertyChangeListener("document", this); boundTextComponent.getDocument().removeDocumentListener(this); boundTextComponent = null; }
public void propertyChange(PropertyChangeEvent event) { update(); ((Document)event.getOldValue()).removeDocumentListener(this); ((Document)event.getNewValue()).addDocumentListener(this); }
textfield.getDocument().removeDocumentListener(this); textfield.removePropertyChangeListener("foreground", this);
/** * Turns off the ex entry field and optionally puts the focus back to the original component */ public void deactivate(boolean refocusOwningEditor) { logger.info("deactivate"); if (!active) return; active = false; if (!ApplicationManager.getApplication().isUnitTestMode()) { if (refocusOwningEditor && parent != null) { UiHelper.requestFocus(parent); } oldGlass.removeComponentListener(adapter); oldGlass.setVisible(false); oldGlass.remove(this); oldGlass.setOpaque(wasOpaque); oldGlass.setLayout(oldLayout); if (isIncSearchEnabled(label.getText())) { entry.getDocument().removeDocumentListener(documentListener); final Editor editor = entry.getEditor(); editor.getScrollingModel().scrollVertically(verticalOffset); editor.getScrollingModel().scrollHorizontally(horizontalOffset); if (incHighlighter != null) { editor.getMarkupModel().removeHighlighter(incHighlighter); } } } parent = null; }
public void removeListener(Controller controller) { // field.removeKeyListener(controller); field.removeActionListener(controller); field.getDocument().removeDocumentListener(controller); }
public void removeListener(Controller controller) { // field.removeKeyListener(controller); field.removeActionListener(controller); field.getDocument().removeDocumentListener(controller); }
/** * Sets the document for this editor. * * @param doc The new document. */ @Override public void setDocument(Document doc) { Document old = getDocument(); if (old!=null) { old.removeDocumentListener(this); } super.setDocument(doc); doc.addDocumentListener(this); }
public void uninstall() { if (installed) { textArea.removeComponentListener(this); textArea.getDocument().removeDocumentListener(this); textArea.removePropertyChangeListener(this); if (textArea instanceof RSyntaxTextArea) { RSyntaxTextArea rsta = (RSyntaxTextArea)textArea; rsta.removeActiveLineRangeListener(this); rsta.getFoldManager().removePropertyChangeListener(this); } installed = false; } }
public void unregisterDocumentListeners() { wsIconTextField.getDocument().removeDocumentListener(wsIconListener); splashTextField.getDocument().removeDocumentListener(splashListener); nativeIconTextField.getDocument().removeDocumentListener(nativeIconListener); } }
doc.removeDocumentListener(this); BufferedReader r = new BufferedReader(ur); try {
void cleanUp() { if (editorPane != null && editorPane.getDocument() != null) { editorPane.getDocument().removeDocumentListener(this); } editorPane = null; panel.removeAll(); panel = null; }
void cleanUp() { if (textField != null && textField.getDocument() != null) { textField.getDocument().removeDocumentListener(this); } textField = null; this.removeAll(); }
@Override public void close() throws IOException { Document d = getDocument(); if( d!=null ){ d.removeDocumentListener(listener); } } };
public void removeFrom(JTextComponent tc) { tc.removeFocusListener(this); tc.getDocument().removeDocumentListener(this); tc.removeCaretListener(this); timer.stop(); justInserted = false; }
@Override public void deinstall(JEditorPane editor) { super.deinstall(editor); editor.getDocument().removeDocumentListener(this); }
public void uninstall() { field.removeActionListener(this); field.getDocument().removeDocumentListener(this); tree.removeMouseListener(this); removeWindowFocusListener(this); }
@Override protected void hideAutocompletionPopup() { synchronized (popup) { if (popup.isVisible()) popup.setVisible(false); autocompletedtextComp.getDocument().removeDocumentListener(documentListener); } }
public void notifyClosing (EditorController controller, Widget widget, JTextField editor, boolean commit) { editor.getDocument ().removeDocumentListener (documentListener); editor.removeFocusListener (focusListener); editor.removeKeyListener (keyListener); if (commit) { this.editor.setText (widget, editor.getText ()); if (widget != null) widget.getScene ().validate (); } }
@Override public void deinstall(JEditorPane editor) { removeMouseListener(mouseListener); status = Status.DEINSTALLING; editor.getDocument().removeDocumentListener(this); editor.removeCaretListener(this); editor.removePropertyChangeListener(this); JScrollPane sp = getScrollPane(editor); if (sp != null) { sp.setRowHeaderView(null); } }
/** * Remove dependices when no longer in use. */ public void close() { getDocument().removeDocumentListener(this); getDocument().removeUndoableEditListener(undoManager); removeMouseListener(this); getInputMap().remove(undoKeyStroke); getInputMap().remove(ctrlbackspaceKeyStroke); getInputMap().remove(escapeKeyStroke); getInputMap().remove(KeyStroke.getKeyStroke("Ctrl W")); }