Package org.eclipse.swt.widgets

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


      String[] items = new String[enumerations.size()];
      final Combo combo = new Combo(optionsGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
     
      combo.setItems(enumerations.toArray(items));
      combo.select(enumerations.indexOf(value));
      combo.addSelectionListener(new SelectionListener() {
       
        public void widgetSelected(SelectionEvent e) {
          value = combo.getItem(combo.getSelectionIndex());
          tab.updateTab();
        }
View Full Code Here


    }
    else
    {
      combo.select(1);
    }
    combo.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        if(combo.getSelectionIndex() == 0)
        {
          value = "true";
View Full Code Here

        combo.setItems(qList.toArray(new String[0]));
        combo.add("Select Queue", 0);
        combo.select(0);
        combo.setLayoutData(formData);
        combo.setData(param);
        combo.addSelectionListener(parameterSelectionListener);

        // Binding creation widgets
        createARowForCreatingHeadersBinding(composite, 1);
        createARowForCreatingHeadersBinding(composite, 2);
        createARowForCreatingHeadersBinding(composite, 3);
View Full Code Here

            catch (Exception e) {
                e.printStackTrace();
            }
        }

        colorList.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent arg0) {
                int selectionIndex = colorList.getSelectionIndex();
                theComponent.setCometeBackground(colors.get(selectionIndex));
            }
View Full Code Here

            catch (Exception e) {
                e.printStackTrace();
            }
        }

        colorList.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent arg0) {
                int selectionIndex = colorList.getSelectionIndex();
                theComponent.setCometeForeground(colors.get(selectionIndex));
            }
View Full Code Here

            catch (Exception e) {
                e.printStackTrace();
            }
        }

        fontList.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent arg0) {
                int selectionIndex = fontList.getSelectionIndex();
                theComponent.setCometeFont(fonts.get(selectionIndex));
            }
View Full Code Here

    return super.createTableWithStyle(cols, w, listener, style);
  }

  public Combo createCombo(SelectionListener listener){
    Combo combo = super.createCombo( SWT.READ_ONLY);
    combo.addSelectionListener( listener);
    return combo;
  }

  public Menu createMenu(Menu menu, String name){
    return super.createMenu( menu, resources.getLabel(CLASS_NAME+"."+name));   
View Full Code Here

    return widget;
  }
 
  public Combo createCombo(Composite com, int style, String[] text, SelectionListener listener){
    Combo widget = createCombo(com, style, text);
    widget.addSelectionListener(listener);
    return widget;
  }
 
 
  public List createList(Composite com, int style){
View Full Code Here

        combo.setItems(qList.toArray(new String[0]));
        combo.add("Select Queue", 0);
        combo.select(0);
        combo.setLayoutData(formData);
        combo.setData(param);
        combo.addSelectionListener(parameterSelectionListener);

        // Binding creation widgets
        createARowForCreatingHeadersBinding(composite, 1);
        createARowForCreatingHeadersBinding(composite, 2);
        createARowForCreatingHeadersBinding(composite, 3);
View Full Code Here

        combo.setItems(qList.toArray(new String[0]));
        combo.add("Select Queue", 0);
        combo.select(0);
        combo.setLayoutData(formData);
        combo.setData(param);
        combo.addSelectionListener(parameterSelectionListener);

        // Binding creation widgets
        createARowForCreatingHeadersBinding(composite, 1);
        createARowForCreatingHeadersBinding(composite, 2);
        createARowForCreatingHeadersBinding(composite, 3);
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.