Examples of removeFocusListener()


Examples of java.awt.Component.removeFocusListener()

      ((JTextComponent)result).selectAll();
      result.addFocusListener(new FocusAdapter() {
        public void focusGained(FocusEvent arg0) {
          super.focusGained(arg0);
          ((JTextComponent)result).selectAll();
          result.removeFocusListener(this);
        }

        public void focusLost(FocusEvent arg0) {
          // TODO Auto-generated method stub
          super.focusLost(arg0);
View Full Code Here

Examples of java.awt.Component.removeFocusListener()

      c.addFocusListener(new FocusAdapter() {
        public void focusGained(FocusEvent e) {
      if(!DockingUtility.isActive(parentDockable)) {
          parentDockable.getDockingProperties().setActive(true);
      }
      c.removeFocusListener(this);
        }
    });                        
      c.requestFocusInWindow();
        }
View Full Code Here

Examples of java.awt.Component.removeFocusListener()

    private void removeScrollPane( JScrollPane p )
    {
      final Component c = p.getViewport().getView();
      c.removeMouseListener( this );
      c.removeFocusListener( this );
      if( DEBUG ) System.err.println( "removeFocus/MouseListener " + c.getClass().getName() + "(" + c.hashCode() + ")" );
    }

    public void componentAdded( ContainerEvent e )
    {
View Full Code Here

Examples of java.awt.Component.removeFocusListener()

      cachedBounds = toolBar.getPreferredSize();
      cachedOrientation = toolBar.getOrientation();

      Component c = e.getChild();
      if (toolBarFocusListener != null)
        c.removeFocusListener(toolBarFocusListener);
    }
  }

  /**
   * This is the floating window that is returned when getFloatingWindow is
View Full Code Here

Examples of javax.swing.JComponent.removeFocusListener()

                            public void focusGained(FocusEvent e) {}
                           
                            /** when the focus is lost it implies the editor is closing, any changes are committed so we can end the compound edit*/
                            public void focusLost(FocusEvent e) {
                                undoableEditSupport.endUpdate();
                                editor.removeFocusListener(this);
                            }
                        });
                       
                    }
                });
View Full Code Here

Examples of javax.swing.text.JTextComponent.removeFocusListener()

     */
    public void uninstall() {

      JTextComponent tc = ac.getTextComponent();
      tc.removeCaretListener(this);
      tc.removeFocusListener(this);
      uninstallKeyBindings();

      // Remove WeakReferences in javax.swing.text.
      maxPos = null;
      minPos = -1;
View Full Code Here

Examples of javax.swing.text.JTextComponent.removeFocusListener()

        if (border instanceof TextFieldBorder) {
            c.setBorder(null);
        }

        c.putClientProperty("caretAspectRatio", null);
        c.removeFocusListener(this);

        style.uninstallDefaults(context);
        context.dispose();
        style = null;
View Full Code Here

Examples of javax.swing.text.JTextComponent.removeFocusListener()

  public void uninstallListeners() {
    comboBox.removeMouseListener(mouseHandler);
    JTextComponent textComponent = (JTextComponent)comboBox.getEditor().
                      getEditorComponent();
    textComponent.removeMouseListener(mouseHandler);
    textComponent.removeFocusListener(focusListener);
    // Doesn't need to be done as the button is discarded (?)...
    //xpArrowButton.removeMouseListener(mouseHandler);
    comboBox.removePopupMenuListener(popupListener);
    super.uninstallListeners();
  }
View Full Code Here

Examples of javax.swing.text.JTextComponent.removeFocusListener()

    {
        final JTextComponent component = getComponent ();

        PainterSupport.uninstallPainter ( component, this.painter );

        component.removeFocusListener ( focusListener );
        component.removePropertyChangeListener ( WebLookAndFeel.MARGIN_PROPERTY, marginChangeListener );

        super.uninstallUI ( c );
    }
View Full Code Here

Examples of org.eclipse.jface.text.IInformationControl.removeFocusListener()

        fSubjectControl.removeKeyListener(this);
      }
     
      IInformationControl fInformationControlToClose= getCurrentInformationControl2();
      if (fInformationControlToClose != null)
        fInformationControlToClose.removeFocusListener(this);
     
      if (fDisplay != null && !fDisplay.isDisposed()) {
        fDisplay.removeFilter(SWT.MouseMove, this);
        fDisplay.removeFilter(SWT.FocusOut, this);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.