Package org.eclipse.swt.widgets

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


            breaksCombo.add(Messages.StyleEditor_theme_quantile);
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            //breaksCombo.add(Messages.StyleEditor_theme_standardDeviation);
            int index = breaksCombo.indexOf(value);
            if (index > -1) breaksCombo.select(index);
            else breaksCombo.select(1);
        } else { //show categorical break types
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            int index = breaksCombo.indexOf(value);
            if (index > -1) breaksCombo.select(index);
            else breaksCombo.select(0);
View Full Code Here


            if (index > -1) breaksCombo.select(index);
            else breaksCombo.select(1);
        } else { //show categorical break types
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            int index = breaksCombo.indexOf(value);
            if (index > -1) breaksCombo.select(index);
            else breaksCombo.select(0);
        }
    }
   
    private void updateNormalize() {
View Full Code Here

            else breaksCombo.select(1);
        } else { //show categorical break types
            breaksCombo.add(Messages.StyleEditor_theme_uniques);
            int index = breaksCombo.indexOf(value);
            if (index > -1) breaksCombo.select(index);
            else breaksCombo.select(0);
        }
    }
   
    private void updateNormalize() {
        Combo normalizeCombo = getCombo(COMBO_NORMALIZE);
View Full Code Here

                String attr = numericAttr.get(i);
                if (!currentAttr.equals(attr))
                    normalizeCombo.add(attr);
            }
            int index = normalizeCombo.indexOf(value);
            if (index > 1) normalizeCombo.select(index);
            else normalizeCombo.select(0); //default is "< NONE >"
        } else {
            normalizeCombo.select(0);
            normalizeCombo.setEnabled(false);
        }
View Full Code Here

                if (!currentAttr.equals(attr))
                    normalizeCombo.add(attr);
            }
            int index = normalizeCombo.indexOf(value);
            if (index > 1) normalizeCombo.select(index);
            else normalizeCombo.select(0); //default is "< NONE >"
        } else {
            normalizeCombo.select(0);
            normalizeCombo.setEnabled(false);
        }
    }
View Full Code Here

            }
            int index = normalizeCombo.indexOf(value);
            if (index > 1) normalizeCombo.select(index);
            else normalizeCombo.select(0); //default is "< NONE >"
        } else {
            normalizeCombo.select(0);
            normalizeCombo.setEnabled(false);
        }
    }
   
    boolean inputsValid() {
View Full Code Here

        int blue = Integer.parseInt(parts[2]);

        Combo combo = getCombo(COMBO_BORDER_COLOR);
        if (red == 0 && blue == 0 && green == 0) {
            // its black so set combo to black
            combo.select(Outline.BLACK.ordinal());
        } else if (red == 255 && blue == 255 && green == 255) {
            // its white so set combo to white
            combo.select(Outline.WHITE.ordinal());
        } else {
            combo.select(Outline.CUSTOM.ordinal());
View Full Code Here

        if (red == 0 && blue == 0 && green == 0) {
            // its black so set combo to black
            combo.select(Outline.BLACK.ordinal());
        } else if (red == 255 && blue == 255 && green == 255) {
            // its white so set combo to white
            combo.select(Outline.WHITE.ordinal());
        } else {
            combo.select(Outline.CUSTOM.ordinal());
            combo.setData(new RGB(red,green,blue));
        }
    }
View Full Code Here

            combo.select(Outline.BLACK.ordinal());
        } else if (red == 255 && blue == 255 && green == 255) {
            // its white so set combo to white
            combo.select(Outline.WHITE.ordinal());
        } else {
            combo.select(Outline.CUSTOM.ordinal());
            combo.setData(new RGB(red,green,blue));
        }
    }

    private void readCustomBreak(IMemento memento) {
View Full Code Here

    if( memento.getString(key)!=null ){
        String string = memento.getString(key);
        String[] items = control.getItems();
        for (int i = 0; i < items.length; i++) {
          if( items[i].equals(string)){
            control.select(i);
            break;
          }
      }
      }
  };
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.