Package org.eclipse.swt.widgets

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


        data = new FormData();
        data.top = new FormAttachment(combo, 10);
        data.left = new FormAttachment(atLabel, 10);
        endPeriodText.setLayoutData(data);
       
        combo.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                if (combo.getSelectionIndex() == 0) {
                    periodLabel.setEnabled(true);
                    startPeriodText.setEnabled(true);
                    atLabel.setEnabled(true);
View Full Code Here


        GridData data = new GridData(GridData.FILL);
        data.widthHint = 180;
        paymentTypeCombo.setLayoutData(data);

        Combo combo = paymentTypeCombo.getCombo();
        combo.addListener(SWT.Modify, new Listener(){
          public void handleEvent(Event arg0) {
            if(paymentTypeCombo.getCombo().getText().equals("Cheque")){
              paymentExpenditureTotalText.setEditable(false);
            } else {
              paymentExpenditureTotalText.setEditable(true);
View Full Code Here

          if (!fInputValue.equals(input))
            fModified = true;
        }
      };
      spinner.addListener(SWT.Modify, listener);
      combo.addListener(SWT.Modify, listener);

      /* Pre-Select input if given */
      Object presetInput = (input == null) ? fInputValue : input;
      if (presetInput != null && presetInput instanceof Integer) {
        Integer inputValue = (Integer) presetInput;
View Full Code Here

        /* Type: Boolean */
        case ISearchValueType.BOOLEAN: {
          final Combo combo = new Combo(inputField, SWT.BORDER | SWT.READ_ONLY);
          combo.add(Messages.SearchConditionItem_TRUE);
          combo.add(Messages.SearchConditionItem_FALSE);
          combo.addListener(SWT.Modify, new Listener() {
            public void handleEvent(Event event) {
              fInputValue = Boolean.valueOf(combo.getItem(combo.getSelectionIndex()));

              if (!fInputValue.equals(input))
                fModified = true;
View Full Code Here

           isRegEx_combo.clearSelection();
         }else{
           isRegEx_combo.select(0);
           isRegEx_combo.clearSelection();
         }
         isRegEx_combo.addListener(SWT.Selection, new Listener() {
           public void handleEvent(Event e) {
             Plugin.getTab2().getClientTable().setSelection(item_number);
             String position = item.getText(0);
             position = stringNumberDownOne(position);
             String clientName = item.getText(1);
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.