Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusListener


      {
      super(arg);
      b=new Button(parent, SWT.CHECK);
      b.setSelection(arg.booleanValue());
     
      b.addFocusListener(new FocusListener()
        {
        @Override
        public void focusLost(FocusEvent e)
          {validar();}
       
View Full Code Here


     
      GridData gridData = new GridData();
      gridData.widthHint=50;
      s.setLayoutData(gridData);
     
      s.addFocusListener(new FocusListener()
        {
        @Override
        public void focusLost(FocusEvent e)
          {validar();}
       
View Full Code Here

        this.text = new StyledText(this, style);

        /*
         * Show/hide the hint appropriately
         */
        this.text.addFocusListener(new FocusListener() {
            public void focusLost(FocusEvent e) {
                String message = ChatInput.this.text.getText();
                if (message.equals("")) { //$NON-NLS-1$
                    ChatInput.this.showHint();
                }
View Full Code Here

    IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
    ITheme currentTheme = themeManager.getCurrentTheme();

    FontRegistry fontRegistry = currentTheme.getFontRegistry();
    text3.setFont( fontRegistry.get(JFaceResources.TEXT_FONT));
    text3.addFocusListener(new FocusListener()
    {

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

       
        setBackground(backgroundColor);
        refreshLegend(graph);
        setGraph(graph);
       
        this.addFocusListener(new FocusListener() {
            public void focusGained(FocusEvent arg0) {
                synchronized (SWTJGraphPane.this){
                    SWTJGraphPane.this.redraw();
                }
            }
View Full Code Here

  public void onFirstShown() {
    String baseUrl = host.normalizeURL("/");
    setLocationText(baseUrl);
    location.setFocus();
    location.setSelection(baseUrl.length());
    location.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent e) {
        int length = location.getText().length();
        location.setSelection(length, length);
      }
View Full Code Here

          editor.getEditor().traverse(SWT.TRAVERSE_TAB_PREVIOUS);
        else if (evt.keyCode == SWT.ARROW_DOWN)
          editor.getEditor().traverse(SWT.TRAVERSE_TAB_NEXT);
      }
    });
    newEditor.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent arg0) {
        // nothing to do
      }

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

          editor.getEditor().traverse(SWT.TRAVERSE_TAB_PREVIOUS);
        else if (evt.keyCode == SWT.ARROW_DOWN)
          editor.getEditor().traverse(SWT.TRAVERSE_TAB_NEXT);
      }
    });
    newEditor.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent arg0) {
        // nothing to do
      }

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

          editor.getEditor().traverse(SWT.TRAVERSE_TAB_PREVIOUS);
        else if (evt.keyCode == SWT.ARROW_DOWN)
          editor.getEditor().traverse(SWT.TRAVERSE_TAB_NEXT);
      }
    });
    newEditor.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent arg0) {
        // nothing to do
      }

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

          editor.getEditor().traverse(SWT.TRAVERSE_TAB_PREVIOUS);
        else if (evt.keyCode == SWT.ARROW_DOWN)
          editor.getEditor().traverse(SWT.TRAVERSE_TAB_NEXT);
      }
    });
    newEditor.addFocusListener(new FocusListener() {
      public void focusGained(FocusEvent arg0) {
        // nothing to do
      }

      public void focusLost(FocusEvent evt) {
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.