Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Button.notifyListeners()


        if (container instanceof Dialog) {
          Dialog d = (Dialog) container;
          Button button = findButton(d.buttonBar,
              IDialogConstants.NEXT_ID);
          if (button != null)
            button.notifyListeners(SWT.Selection, new Event());
        }
      }
    });
    viewer.addSelectionChangedListener(this);
View Full Code Here


  public static void pushButton(Dialog dialog, int id) {
    Shell shell = dialog.getShell();
    Button button = findButton(shell.getChildren(), id, shell);
    if( !button.isEnabled() )
      throw new RuntimeException("Error button to press is not enabled"); //$NON-NLS-1$
    button.notifyListeners(SWT.Selection, new Event());
  }

  public static Button findButton(Dialog dialog, int id) {
    Shell shell = dialog.getShell();
    Button found = findButton(shell.getChildren(), id, shell);
View Full Code Here

  public static void pushButton(Dialog dialog, int id) {
    Shell shell = dialog.getShell();
    Button button = findButton(shell.getChildren(), id, shell);
    if( !button.isEnabled() )
      throw new RuntimeException("Error button to press is not enabled"); //$NON-NLS-1$
    button.notifyListeners(SWT.Selection, new Event());
  }

  public static Button findButton(Dialog dialog, int id) {
    Shell shell = dialog.getShell();
    Button found = findButton(shell.getChildren(), id, shell);
View Full Code Here

            public void run() {
                Event event = new Event();
                event.display = applyButton.getDisplay();
                event.button = 1;
                event.widget = applyButton;
                applyButton.notifyListeners(SWT.Selection, event);
            }
           
            @Override
            public void setChecked( boolean checked ) {
                applyButton.setSelection(checked);
View Full Code Here

    });
    queryText.addKeyListener(new KeyAdapter() {
      public void keyPressed(KeyEvent e) {
        if(e.keyCode == SWT.CR) {
          //button pressed
          searchButton.notifyListeners(SWT.Selection, null);
        }
      }
    });
  }
View Full Code Here

                }
                button.setSelection(true);
              } else {
                button.setSelection(!button.getSelection());
              }
              button.notifyListeners(SWT.Selection, event);
              e.detail= SWT.TRAVERSE_NONE;
              e.doit= true;
            }
          }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.