Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.SelectionListener


           });
       }
      
       final Button btnReset = new Button(main, SWT.PUSH);
       btnReset.setText("Forget Default Profile Choice");
       btnReset.addSelectionListener(new SelectionListener() {
        public void widgetSelected(SelectionEvent e) {
          device.setDefaultTranscodeProfile(null);
          btnReset.setEnabled(false);
        }
     
View Full Code Here


    createOn.setBackgroundMode(SWT.INHERIT_FORCE);

    button = new Button(createOn, SWT.CHECK);
    checked = false;

    button.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        checked = button.getSelection();
        for (SWTSkinCheckboxListener l : buttonListeners) {
          try {
            l.checkboxChanged(SWTSkinObjectCheckbox.this, checked);
View Full Code Here

      button.setLayoutData(Utils.getFilledFormData());
    } else {
      c = button;
    }
   
    button.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        Object[] listeners = buttonListeners.toArray();
        for (int i = 0; i < listeners.length; i++) {
          ButtonListenerAdapter l = (ButtonListenerAdapter) listeners[i];
          l.pressed(null);
View Full Code Here

    GridLayout gLayout2 = new GridLayout(3, false);
    gLayout2.marginHeight = 16;
    gLayout2.marginWidth = 16;
    toolbarPanel.setLayout(gLayout2);

    defaultButtonListener = new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        if (true == BUTTON_OK.equals(e.widget.getData("button.id"))) {
          performOK();
        } else if (true == BUTTON_CANCEL.equals(e.widget.getData("button.id"))) {
          performCancel();
View Full Code Here

    for (int i=0;i<viewVivaldis.length;i++){
      viewVivaldis[i].initialize(folder);
      itemVivaldis[i].setControl(viewVivaldis[i].getComposite());
    }
   
    folder.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        refresh();
      }
      public void widgetDefaultSelected(SelectionEvent e) {
      }
View Full Code Here

    super(toolBar,  SWT.NONE);

    change_icon();
   
    SWTServerListWrapper.getInstance().setConnectButton(this);
    addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent arg0) {}

      public void widgetSelected(SelectionEvent arg0) {
       
View Full Code Here

    button_ok.setLayoutData(grid_data);
   
    button_ok.setFont(skin.getButtonFont());
    button_ok.setImage(skin.getButtonImage(SkinConstants.OK_BUTTON_IMAGE));
    button_ok.setText(Localizer._("mainwindow.button.ok"));
    button_ok.addSelectionListener(new SelectionListener() {
    public void widgetDefaultSelected(SelectionEvent arg0) {
      }

      public void widgetSelected(SelectionEvent arg0) {
        String server_ip = text_server_ip.getText();
        if (!AddressUtils.isValidIP(server_ip)) {
          MessageBox dialog = new MessageBox(shell,
                      SWT.OK | SWT.ICON_WARNING);
          dialog.setMessage(Localizer._("serveraddwindow.wrong_server_address"));
          dialog.open();
          return ;
        }
       
        if (!AddressUtils.isValidPort(text_port.getText())) {
          MessageBox dialog = new MessageBox(shell,
          SWT.OK | SWT.ICON_WARNING);
          dialog.setMessage(Localizer._("serveraddwindow.wrong_server_port"));
          dialog.open();
          return ;
        }
        int server_port = Integer.parseInt(text_port.getText());
        try {
          _core.getServerManager().newServer(server_ip, server_port);
        } catch (ServerManagerException e) {
          Utils.showWarningMessage(shell, "", e.getMessage());
        }
       
        shell.close();
    } });
   
    Button button_cancel = new Button(buttons_composite,SWT.NONE);
    button_cancel.setImage(skin.getButtonImage(SkinConstants.CANCEL_BUTTON_IMAGE));
    button_cancel.setText(Localizer._("mainwindow.button.cancel"));
   
    button_cancel.addSelectionListener(new SelectionListener() {

      public void widgetDefaultSelected(SelectionEvent arg0) {
      }

      public void widgetSelected(SelectionEvent arg0) {
View Full Code Here

    fReadState.setText(Messages.StateConditionControl_READ);
    fReadState.setToolTipText(Messages.StateConditionControl_READ_INFO);
    fReadState.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, true));

    /* Selection Listener to issue modify events */
    SelectionListener selectionListener = new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        notifyListeners(SWT.Modify, new Event());
      }
    };
View Full Code Here

    fReadState.setText("Read");
    fReadState.setSelection(fSelectedStates != null && fSelectedStates.contains(INews.State.READ));
    fReadState.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, true));

    /* Selection Listener to issue modify events */
    SelectionListener selectionListener = new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        notifyListeners(SWT.Modify, new Event());
      }
    };
View Full Code Here

    fReadState.setText("Read");
    fReadState.setToolTipText("News that have been read");
    fReadState.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, true));

    /* Selection Listener to issue modify events */
    SelectionListener selectionListener = new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        notifyListeners(SWT.Modify, new Event());
      }
    };
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.SelectionListener

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.