Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusListener


        }
        updateServicesTable();
      }
    });

    filterText.addFocusListener(new FocusListener() {

      public void focusLost(FocusEvent e) {
        if (filterText.getText().isEmpty()) {
          updating = true;
          filterText.setText(DEFAULT_FILTER_TEXT);
View Full Code Here


            @Override public void widgetSelected (SelectionEvent ev) {}
        });

        // listen for focus changes and dispatch via the platform
        _textCtrl.addFocusListener(new FocusListener() {
            @Override public void focusLost (FocusEvent e) {
                SWTTPPlatform.instance().onFocusChange();
            }

            @Override public void focusGained (FocusEvent e) {
View Full Code Here

      }
    };
    printAddListener(control, "DISPOSE"); //$NON-NLS-1$
    control.addDisposeListener(disposeListener);

    focusListener = new FocusListener() {
      public void focusGained(FocusEvent event) {
        hasFocus = true;
        if (showOnlyOnFocus) {
          update();
        }
View Full Code Here

        if (hover != null) {
          hover.dispose();
        }
      }
    });
    control.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent event) {
        controlFocusGained();
      }

      public void focusLost(FocusEvent event) {
View Full Code Here

      @Override
      public void mouseDoubleClick(MouseEvent e) {
      }
    });
    serverUrlText.addFocusListener(new FocusListener() {
      @Override
      public void focusLost(FocusEvent e) {
      }
      @Override
      public void focusGained(FocusEvent e) {
View Full Code Here

    dialog.setBounds(dialog.computeTrim(tableBounds.x, tableBounds.y,
        tableBounds.width, tableBounds.height));

    tc.setWidth(table.getClientArea().width);
    table.setFocus();
    table.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        // Do nothing
      }

      public void focusLost(FocusEvent e) {
View Full Code Here

  /**
   * @return
   */
  private FocusListener getFocusListener() {
    if (focusListener == null) {
      focusListener = new FocusListener() {
        public void focusGained(FocusEvent e) {
          focusIn(e.widget);
        }

        public void focusLost(FocusEvent e) {
View Full Code Here

    textTriggerSequence.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        update();
      }
    });
    textTriggerSequence.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        bindingService.setKeyFilterEnabled(false);
      }

      public void focusLost(FocusEvent e) {
View Full Code Here

    gridData.grabExcessHorizontalSpace = true;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.widthHint = 200;
    bindingText.setLayoutData(gridData);

    bindingText.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        bindingService.setKeyFilterEnabled(false);
      }

      public void focusLost(FocusEvent e) {
View Full Code Here

  /*
   * Add the listeners needed in order to activate the content assist command
   * on the control.
   */
  private void addListeners(Control control) {
    control.addFocusListener(new FocusListener() {
      public void focusLost(FocusEvent e) {
        if (activeHandler != null) {
          handlerService.deactivateHandler(activeHandler);
          activeHandler = null;
        }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.FocusListener

Copyright © 2018 www.massapicom. 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.