Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusAdapter


                @Override
                public void keyReleased( KeyEvent e ) {
                    valueChanged();
                }
            });
            dateTime.addFocusListener( new FocusAdapter(){
                @Override
                public void focusLost( FocusEvent e ) {
                    valueChanged();
                }
            });       
View Full Code Here


                        getViewer().getTree().setFocus();
                    }
                }
            }
        });
        filterCombo.addFocusListener(new FocusAdapter(){
            /* (non-Javadoc)
             * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
             */
            public void focusLost(FocusEvent e) {
                String [] textValues = filterCombo.getItems();
View Full Code Here

      return;
    }

    this.newEditor = new Text(this.tree, SWT.NONE);
    this.newEditor.setText(item.getText());
    this.newEditor.addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent e) {
        if (!updatingTreeItem) {
          updateText(newEditor.getText(), item);
        }
      }
View Full Code Here

                {
                    valueChanged();
                }

            });
            this.textField.addFocusListener(new FocusAdapter()
            {

                public void focusGained(FocusEvent e)
                {
                    refreshValidState();
View Full Code Here

    }

    // The control that will be the editor must be a child of the Table
    this.newEditor = new Text(this.tree, SWT.NONE);
    this.newEditor.setText(item.getText());
    this.newEditor.addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent e) {
        if (!updatingTreeItem) {
          //updateText(newEditor.getText(), item);
          AbstractDataManagerView.this.manager.setLabel(
            ((DataGUIItem) item.getData()).getModel(),
View Full Code Here

          checkSelection();
          checkDeleteable();
          checkSelectable();
          }
      });
    text.addFocusListener(new FocusAdapter()
      {
        public void focusLost(FocusEvent e)
          {
          NumericCellEditor.this.focusLost();
          }
View Full Code Here

        public void modifyText(ModifyEvent e)
          {
          editOccured(e);
          }
      });
    fText.addFocusListener(new FocusAdapter()
      {
        public void focusGained(FocusEvent e)
          {
          if (fListener != null)
            fListener.focusGained(FormEntry.this);
View Full Code Here

          className.setText(name);
        }
        validate();
      }
    });
    pageName.addFocusListener(new FocusAdapter(){
      public void focusLost(FocusEvent e) {
        insertClassName = className.getText().length()==0;
      }
    });
View Full Code Here

          // updateFileList(inputDocPathField.getText().trim());
        }
      }
    });

    topDescriptorField.addFocusListener(new FocusAdapter() {
      public void focusLost(org.eclipse.swt.events.FocusEvent e) {
        // updateFileList(inputDocPathField.getText().trim());
      }
    });
   
View Full Code Here

  /**
   * Define the focus and un-focus events. Adds coloring differentiation
   * if defined in JaguarSWTColor
   */
  private void addFocusUnfocusEventHandlers() {
    addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent arg0) {
        if(autoRefillDefaultText && getText().trim().equals(""))
          setText(defaultText);
        setForeground(getDisplay().getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW));
        setBackground(getDisplay().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
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.