Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CCombo


    if (control instanceof Text) {
      Text text = (Text) control;
      text.setBackground(null);
      text.setToolTipText(null);
    } else if (control instanceof CCombo) {
      CCombo combo = (CCombo) control;
      combo.setBackground(null);
      combo.setToolTipText(null);
    } else if (control instanceof Composite) {
      Composite composite = (Composite) control;
      composite.setBackground(null);
      for (final Control childControl : composite.getChildren()) {
        childControl.setBackground(null);
View Full Code Here


    label.setLayoutData(data);
    return label;
  }

  private CCombo createCCombo(Composite parent, List<String> values, TabbedPropertySheetWidgetFactory factory, Control top) {
    CCombo combo = factory.createCCombo(parent, SWT.NONE);
    for (String value : values) {
      combo.add(value);
    }
    FormData data = new FormData();
    data.left = new FormAttachment(0, 160);
    data.right = new FormAttachment(100, 0);
    if(top == null) {
      data.top = new FormAttachment(0, VSPACE);
    } else {
      data.top = new FormAttachment(top, VSPACE);
    }
    combo.setLayoutData(data);
    combo.addFocusListener(listener);
    return combo;
  }
View Full Code Here

    newLabelWithTip(parent, labelKey, tip);
    return newCComboWithTip(parent, tip);
  }

  protected CCombo newCComboWithTip(Composite parent, String tip) {
    CCombo ccombo = new CCombo(parent, SWT.FLAT | SWT.READ_ONLY);
    toolkit.adapt(ccombo, false, false);
    ccombo.setToolTipText(tip);
    ccombo.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
    ccombo.addListener(SWT.Selection, this);
    return ccombo;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.CCombo

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.