Examples of notifyListeners()


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

            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

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

    });
    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

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

                }
                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

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

      synchronized (_ignoreModify) {       
        _ignoreModify = true;
        componentNameCombo.setSelection(selection);
        _ignoreModify = false;
      }
      componentNameCombo.notifyListeners(SWT.Modify, new Event());

    }
  }

  public void modifyText(ModifyEvent e) {
View Full Code Here

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

                    argumentsTable.setSize(area.width, area.height);
                    nameColumn.setWidth(width);
                }
            }
        });
        argumentsComposite.notifyListeners(SWT.CONTROL, new Event());

        return argumentsComposite;
    }

    private void createArgumentsLabel(Composite argumentsComposite) {
View Full Code Here

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

        fHelpButton != null && fHelpButton.getSelection()) { // help button was not selected before
      if (getShell() != null) {
        Control c = getShell().getDisplay().getFocusControl();
        while (c != null) {
          if (c.isListening(SWT.Help)) {
            c.notifyListeners(SWT.Help, new Event());
            break;
          }
          c = c.getParent();
        }
        if (fHelpButton != null && getTray() != null) {
View Full Code Here

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

                    focusControl.getDisplay().asyncExec(
                        new Runnable() {
                          public void run() {
                            if (!focusControl
                                .isDisposed()) {
                              focusControl
                                  .notifyListeners(
                                      SWT.Selection,
                                      null);
                            }
                          }
View Full Code Here

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

            throw new Error("Something is seriously wrong here"); //$NON-NLS-1$
          }
        } else if (numParams == 0) {
          // This is a no-argument selectAll method.
          methodToExecute.invoke(focusControl, null);
          focusControl.notifyListeners(SWT.Selection, null);

        } else if (numParams == 1) {
          // This is a single-point selection method.
          final Method textLimitAccessor = focusControl.getClass()
              .getMethod("getTextLimit", NO_PARAMETERS); //$NON-NLS-1$
View Full Code Here

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

          final Integer textLimit = (Integer) textLimitAccessor
              .invoke(focusControl, null);
          final Object[] parameters = { new Point(0, textLimit
              .intValue()) };
          methodToExecute.invoke(focusControl, parameters);
          focusControl.notifyListeners(SWT.Selection, null);

        } else {
          /*
           * This means that getMethodToExecute() has been changed,
           * while this method hasn't.
View Full Code Here

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

    MenuItem theItem = null;
    // try three times to get the menu item
    for (int i = 0; i < 3; i++) {
      Control control = (Control) bot.widget;
      // for dynamic menus, we need to issue this event
      control.notifyListeners(SWT.MenuDetect, new Event());
      Menu menu = control.getMenu();
      for (String text : texts) {
        Matcher<?> matcher = allOf(instanceOf(MenuItem.class),
            withMnemonic(text));
        theItem = show(menu, matcher);
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.