Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusAdapter


        setEditor(control, (Item) cell.getItem(), cell.getColumnIndex());
        cellEditor.setFocus();

        if (cellEditor.dependsOnExternalFocusListener()) {
          if (focusListener == null) {
            focusListener = new FocusAdapter() {
              public void focusLost(FocusEvent e) {
                applyEditorValue();
              }
            };
          }
View Full Code Here


        gd.verticalIndent = PopupDialog.POPUP_VERTICALSPACING;
        text.setLayoutData(gd);
        text.setText(contents);

        // since SWT.NO_FOCUS is only a hint...
        text.addFocusListener(new FocusAdapter() {
          public void focusGained(FocusEvent event) {
            ContentProposalPopup.this.close();
          }
        });
        return text;
View Full Code Here

            }
            setLayoutData(cellEditor.getLayoutData());
            setEditor(control, tableItem, columnNumber);
            cellEditor.setFocus();
            if (focusListener == null) {
              focusListener = new FocusAdapter() {
                public void focusLost(FocusEvent e) {
                  applyEditorValue();
                }
              };
            }
View Full Code Here

          e.doit = false;
        }
      }
    });

    comboBox.addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent e) {
        ComboBoxViewerCellEditor.this.focusLost();
      }
    });
    return comboBox;
View Full Code Here

          e.doit = false;
        }
      }
    });

    comboBox.addFocusListener(new FocusAdapter() {
      public void focusLost(FocusEvent e) {
        ComboBoxCellEditor.this.focusLost();
      }
    });
    return comboBox;
View Full Code Here

            }
          }
        });

    filterText.addFocusListener(
        new FocusAdapter(){
          /* (non-Javadoc)
           * @see org.eclipse.swt.events.FocusListener#focusLost(org.eclipse.swt.events.FocusEvent)
           */
          public void focusGained(FocusEvent e) {
            /* Running in an asyncExec because the selectAll() does not  
View Full Code Here

            toGetFocusWhenDone.setFocus();
          }
                }
            }
        };
        sash.addFocusListener(new FocusAdapter() {
            public void focusGained(FocusEvent e) {
                sash.setBackground(sash.getDisplay().getSystemColor(
                        SWT.COLOR_LIST_SELECTION));
                sash.addKeyListener(listener);
            }
View Full Code Here

                if (e.character == SWT.ESC || e.character == '\r') {
                    currentPane.setFocus();
                }
            }
        };
        sash.addFocusListener(new FocusAdapter() {
            public void focusGained(FocusEvent e) {
                sash.setBackground(sash.getDisplay().getSystemColor(
                        SWT.COLOR_LIST_SELECTION));
                sash.addKeyListener(listener);
            }
View Full Code Here

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

    text.addFocusListener(new FocusAdapter() {

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

    table.setLayoutData(data);
   
    IDynTableProvider provider = ((FStringList)target).getDataProvider();
    initTable(provider);

    table.addFocusListener(new FocusAdapter() {

      public void focusGained(FocusEvent arg0) {
//TODO        control.fireDescriptionChanged(false, desc);
      }
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.