textfield.removeFocusListener(this);
protected void uninstallListeners() { super.uninstallListeners(); getComponent().removeFocusListener(this);
@Override public void run() { comp.removeFocusListener(fw); } });
/** * @see Disposable#dispose() */ @Override public void dispose() { if (source != null) { source.removeFocusListener(sourceAdapter); source = null; } } }
@Override public void close() throws IOException { if(cmpt!=null && l!=null ){ cmpt.removeFocusListener(l); cmpt = null; l = null; } }};
@Override public void focusLost(FocusEvent e) { if (e.isTemporary() || isAlwaysShown()) { return ; } Component oppositeComponent = e.getOppositeComponent(); if (e.getSource() != searchTextField) { ((Component) e.getSource()).removeFocusListener(this); } if (oppositeComponent instanceof JMenuItem || oppositeComponent instanceof JPopupMenu) { oppositeComponent.addFocusListener(this); return ; } if (oppositeComponent == searchTextField) { return ; } if (searchPanel != null) { removeSearchField(); //fireQuickSearchConfirmed(); callback.quickSearchCanceled(); } } }
@Override public void focusGained(FocusEvent e) { selectedComponent.removeFocusListener(this); final Timer timer = new Timer(100, evt -> runnable.run()); timer.setRepeats(false); timer.start(); } });
private void removeAllComponents() { for (Component c : componentMap.keySet()) { c.removeFocusListener(this); } componentMap.clear(); hideWindow(); }
public void removeFocusListener(FocusListener fl) { if (comp != null) { comp.removeFocusListener(fl); } else { super.removeFocusListener(fl); } }
public void removeFocusListener(FocusListener fl) { if (comp != null) { comp.removeFocusListener(fl); } else { super.removeFocusListener(fl); } }
public void setTextComponent(Component c) { if(textComponent != null) textComponent.removeFocusListener(this); this.textComponent = c; if(textComponent != null) textComponent.addFocusListener(this); }
@Override public void focusGained(FocusEvent e) { e.getComponent().removeFocusListener(this); SwingUtilities.getWindowAncestor(pane).addWindowListener(new WindowAdapter(){ @Override public void windowClosed(WindowEvent e) { e.getWindow().removeWindowListener(this); deHighlight(); } }); } });
@Override public void componentRemoved(ContainerEvent evt) { Component c = evt.getChild(); if (toolBarFocusListener != null) { c.removeFocusListener(toolBarFocusListener); } // Revert the button border setBorderToNormal(c); }
public void clear() { if (legacy != null) { removeAll(); if (listenerAdded) { tryRemoveActionListener(legacy); } legacy.removeFocusListener(this); legacy = null; } enh = null; listenerAdded = false; }
@Override public void focusGained(java.awt.event.FocusEvent ev) { // unregister ev.getComponent().removeFocusListener(this); // lazy activation of drag source if (DragDropUtilities.dragAndDropEnabled && dragActive) { setDragSource(true); // note: dropTarget is activated in constructor } }
public void focusGained(java.awt.event.FocusEvent ev) { // unregister ev.getComponent().removeFocusListener(this); // lazy activation of drag source if (DragDropUtilities.dragAndDropEnabled && dragActive) { setDragSource(true); // note: dropTarget is activated in constructor } }
public void removeFocusListener(FocusListener l) { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { ((AccessibleComponent) ac).removeFocusListener(l); } else { Component c = getCurrentComponent(); if (c != null) { c.removeFocusListener(l); } } }
@Override public void focusGained(FocusEvent e) { if(!DockingUtility.isActive(parentDockable)) { parentDockable.getDockingProperties().setActive(true); } c.removeFocusListener(this); } });
@Override public void focusGained(FocusEvent e) { e.getComponent().removeFocusListener(this); final TextController textController = TextController.getController(); ((MTextController) textController).edit(newNode, newNode.getParentNode(), true, false, false); } });
/** Overridden to hide the popup and remove any listeners from the * combo editor */ @Override public void removeNotify() { log("Combo editor for " + editor + " removeNotify forcing popup close"); setPopupVisible(false); super.removeNotify(); getEditor().getEditorComponent().removeFocusListener(this); }