Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusAdapter


    if (options != null) {
      c.setItems(options);
    }
    c.select(((FOptions)target).getValueNr());

    c.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
        control.fireDescriptionChanged(false, desc);
      }
View Full Code Here


    data.horizontalSpan = data.horizontalSpan - 1;

    t = new Text(parent, SWT.FILL | SWT.BORDER);
    t.setLayoutData(data);
    t.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
        control.fireDescriptionChanged(false, desc);
      }
View Full Code Here

    l = toolkit.createLabel(parent, target.findTitle());

    b = toolkit.createButton(parent, "", SWT.CHECK);
    b.setLayoutData(data);

    b.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
        control.fireDescriptionChanged(false, desc);
      }
View Full Code Here

                        }
                        if (!isDot && (ch == '.' || ch == ',')) isDot = true;
                }
      }
    });
    text.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
        control.fireDescriptionChanged(false, desc);
      }
View Full Code Here

      text = new Text(parent, SWT.PASSWORD | SWT.BORDER);
    else
      text = new Text(parent, SWT.BORDER);
    text.setLayoutData(data);

    text.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
        control.fireDescriptionChanged(false, desc);
      }
View Full Code Here

    text = new Text(parent, SWT.MULTI | SWT.BORDER | SWT.H_SCROLL
        | SWT.V_SCROLL | SWT.WRAP );
    data.heightHint = 100;
    text.setLayoutData(data);
    text.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
        control.fireDescriptionChanged(false, desc);
      }
View Full Code Here

                        event.detail = SWT.TRAVERSE_NONE;
                        break;
                }
            }
        } );
        textEditor.addFocusListener( new FocusAdapter()
        {
            public void focusLost( FocusEvent fe )
            {
                saveChangesAndDispose( server );
            }
View Full Code Here

                    if (e.keyCode >=48 && e.keyCode <=57){
                    valueChanged();
                    }
                }
            });
            textField.addFocusListener(new FocusAdapter(){
                // Ensure that the value is checked on focus loss in case we
                // missed a keyRelease or user hasn't released key.
                // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=214716
                public void focusLost( FocusEvent e ) {
                    valueChanged();
View Full Code Here

                     */
                    public void keyReleased( KeyEvent e ) {
                        valueChanged();
                    }
                });
                textField.addFocusListener(new FocusAdapter(){
                    // Ensure that the value is checked on focus loss in case we
                    // missed a keyRelease or user hasn't released key.
                    // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=214716
                    public void focusLost( FocusEvent e ) {
                        valueChanged();
                    }
                });

                break;
            case VALIDATE_ON_FOCUS_LOST:
                textField.addKeyListener(new KeyAdapter(){
                    public void keyPressed( KeyEvent e ) {
                        clearErrorMessage();
                    }
                });
                textField.addFocusListener(new FocusAdapter(){
                    public void focusGained( FocusEvent e ) {
                        refreshValidState();
                    }

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

        refreshValidState();
        if (isValid != oldState) {
            fireStateChanged(IS_VALID, oldState, isValid);
        }       
       
        textField.addFocusListener(new FocusAdapter(){
            public void focusGained( FocusEvent e ) {
                refreshValidState();
            }

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

TOP

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

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.