Package org.eclipse.swt.widgets

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


  skipYesButton.addListener( SWT.Selection, selectionListener);   skipNoButton.addListener( SWT.Selection, selectionListener);
  folYesButton.addListener( SWT.Selection, selectionListener);    folNoButton.addListener( SWT.Selection, selectionListener);
  keepYesButton.addListener( SWT.Selection, selectionListener);   keepNoButton.addListener( SWT.Selection, selectionListener);
  freshYesButton.addListener( SWT.Selection, selectionListener);   freshNoButton.addListener( SWT.Selection, selectionListener);
  spellYesButton.addListener( SWT.Selection, selectionListener);   spellNoButton.addListener( SWT.Selection, selectionListener);
  threadCombo.addListener( SWT.Selection, selectionListener);

  setControl(composite);

}
View Full Code Here


        /* Type: Boolean */
        case ISearchValueType.BOOLEAN: {
          final Combo combo = new Combo(inputField, SWT.BORDER | SWT.READ_ONLY);
          combo.add("true");
          combo.add("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

        /* Type: Boolean */
        case ISearchValueType.BOOLEAN: {
          final Combo combo = new Combo(inputField, SWT.BORDER | SWT.READ_ONLY);
          combo.add("true");
          combo.add("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

          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

        StyleLayer selectedLayer = getSelectedLayer();
        if (selectedLayer != null) {
            loadWithAttributeTypes(attributeCombo, selectedLayer);
        }
        attributeCombo.setVisibleItemCount(16);
        attributeCombo.addListener(SWT.Modify, new AttributeComboListener());
       
        Combo classesCombo = new Combo(compTop, SWT.BORDER);
        pageControls.put(COMBO_CLASSES, classesCombo);
        classesCombo.setLayout(new GridLayout(1, false));
        gridData = createDefaultGridData();
View Full Code Here

            classesCombo.add(j.toString());
        }
       
        classesCombo.select(3); //default is 5 classes
        classesCombo.setVisibleItemCount(16);
        classesCombo.addListener(SWT.Modify, new ClassesComboListener());

        Combo breaksCombo = new Combo(compTop, SWT.BORDER | SWT.READ_ONLY);
        pageControls.put(COMBO_BREAKTYPE, breaksCombo);
        breaksCombo.setLayout(new GridLayout(1, false));
        gridData = createDefaultGridData();
View Full Code Here

        for ( int i = 0; i < boundFacts.size(); i++ ) {
            factsCombo.add( (String) boundFacts.get( i ) );
        }
        factsCombo.select( 0 );

        factsCombo.addListener( SWT.Selection,
                                new Listener() {
                                    public void handleEvent(Event event) {
                                        if ( factsCombo.getSelectionIndex() == 0 ) {
                                            return;
                                        }
View Full Code Here

        for ( int i = 0; i < boundFacts.size(); i++ ) {
            factsCombo.add( (String) boundFacts.get( i ) );
        }
        factsCombo.select( 0 );

        factsCombo.addListener( SWT.Selection,
                                new Listener() {
                                    public void handleEvent(Event event) {
                                        if ( factsCombo.getSelectionIndex() == 0 ) {
                                            return;
                                        }
View Full Code Here

                dslCombo.add( sen.toString() );
            }

            dslCombo.select( 0 );

            dslCombo.addListener( SWT.Selection,
                                  new Listener() {
                                      public void handleEvent(Event event) {
                                          if ( dslCombo.getSelectionIndex() == 0 ) {
                                              return;
                                          }
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.