Examples of CLabel


Examples of org.eclipse.swt.custom.CLabel

    public DetailsContentViewer(Composite parent, int style) {
      viewForm = new ViewForm(parent, style);
      GridData gd = new GridData(GridData.FILL_HORIZONTAL);
      gd.horizontalSpan = 2;
      viewForm.setLayoutData(gd);
      label = new CLabel(viewForm, SWT.FLAT);
      label.setFont(parent.getFont());
      viewForm.setContent(label);
      hookControl(label);
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = false;
    gridData.horizontalSpan = 1;
    gridData.verticalAlignment = GridData.FILL;

    mapLabel = new CLabel(parent, SWT.NONE);
    mapLabel.setText(Messages.CoordinateTableComposite_map);
    mapLabel.setLayoutData(gridData);

    crsLabel = new CLabel(parent, SWT.NONE);
    crsLabel.setText("CRS:"); //$NON-NLS-1$
    crsLabel.setLayoutData(gridData);
  }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    gridData2.horizontalAlignment = GridData.FILL;
    gridData2.grabExcessHorizontalSpace = true;
    gridData2.grabExcessVerticalSpace = false;
    gridData2.verticalAlignment = GridData.END;

    outputLabel = new CLabel(parent, SWT.NONE);
    outputLabel.setText(Messages.MainComposite_outputText);
    outputLabel.setToolTipText(Messages.MainComposite_outputToolTip);
    outputLabel.setLayoutData(gridData);

    filePathText = new Text(parent, SWT.BORDER);
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    informationComposite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout(3, false);
    informationComposite.setLayoutData(gridData6);
    informationComposite.setLayout(gridLayout);

    this.messageImage = new CLabel(informationComposite, SWT.NONE);
    GridData gridData7 = new GridData();
    gridData7.horizontalAlignment = GridData.BEGINNING;
    gridData7.minimumWidth = 30;
    gridData7.widthHint = 30;
    this.messageImage.setLayoutData(gridData7);

    this.messageText = new CLabel(informationComposite, SWT.NONE);
    GridData gridData8 = new GridData();
    gridData8.horizontalAlignment = GridData.FILL;
    gridData8.grabExcessHorizontalSpace = true;
    gridData8.grabExcessVerticalSpace = true;
    gridData8.verticalAlignment = GridData.FILL;
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    gridData.grabExcessHorizontalSpace = false;
    gridData.grabExcessVerticalSpace = false;
    gridData.widthHint = GRID_DATA_1a_WIDTH_HINT;
    gridData.verticalAlignment = GridData.FILL;

    labelDistance = new CLabel(compositeOperations, SWT.NONE);
    labelDistance.setLayoutData(gridData);
    labelDistance.setText(Messages.PrecisionParallel_distance + ":"); //$NON-NLS-1$
    labelDistance.setToolTipText(Messages.PrecisionParallel_distance + ":" + this.distance); //$NON-NLS-1$

    GridData gridData1 = new GridData();
    gridData1.horizontalAlignment = GridData.FILL;
    gridData1.grabExcessHorizontalSpace = false;
    gridData1.grabExcessVerticalSpace = false;
    gridData1.widthHint = GRID_DATA_2a_WIDTH_HINT;
    gridData1.verticalAlignment = GridData.FILL;

    textDistance = new Text(compositeOperations, SWT.BORDER);
    textDistance.setLayoutData(gridData1);
    textDistance.setText(distance);
    textDistance.addKeyListener(new KeyAdapter() {

      @Override
      public void keyReleased(KeyEvent e) {

        // enter key
        if (e.keyCode == 13 || e.keyCode == 16777296) {
          applyChanges();
        }
      }
    });

    GridData gridData3 = new GridData();
    gridData3.horizontalAlignment = GridData.FILL;
    gridData3.grabExcessHorizontalSpace = false;
    gridData3.grabExcessVerticalSpace = false;
    gridData3.widthHint = GRID_DATA_3a_WIDTH_HINT;
    gridData3.verticalAlignment = GridData.FILL;

    labelUnit = new CLabel(compositeOperations, SWT.NONE);
    labelUnit.setLayoutData(gridData3);
    labelUnit.setText(unitName);

    CLabel emptyLabel = new CLabel(compositeOperations, SWT.NONE);
    emptyLabel.setLayoutData(gridData3);

    GridData gridData4 = new GridData();
    gridData4.horizontalAlignment = GridData.FILL;
    gridData4.grabExcessHorizontalSpace = false;
    gridData4.grabExcessVerticalSpace = true;
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

     * @param text the label text.
     * @param style the label style.
     * @return the label.
     */
    public CLabel createCLabel( Composite parent, String text, int style ) {
        final CLabel label = new CLabel(parent, style);
        label.setBackground(parent.getBackground());
        label.setText(text);
        return label;
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

        gridData.grabExcessHorizontalSpace = true;
        gridData.grabExcessVerticalSpace = true;
        gridData.horizontalSpan = 2;
        gridData.verticalAlignment = GridData.FILL;

        messageTitle = new CLabel(infoComposite, SWT.BOLD);
        messageTitle.setLayoutData(gridData);

        GridData gridData2 = new GridData();
        gridData2.horizontalAlignment = GridData.FILL;
        gridData2.grabExcessHorizontalSpace = true;
        gridData2.grabExcessVerticalSpace = true;
        gridData2.verticalAlignment = GridData.FILL;

        this.messagePanel = new CLabel(infoComposite, SWT.NONE);
        this.messagePanel.setLayoutData(gridData2);

    }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

        gridLayout1.makeColumnsEqualWidth = true;

        compositeMergeFeature = new Composite(sashForm, SWT.BORDER);
        compositeMergeFeature.setLayout(gridLayout1);

        cLabelTarget = new CLabel(compositeMergeFeature, SWT.NONE);
        cLabelTarget.setText(Messages.MergeFeaturesComposite_merge_feature);

        tableMergeFeature = new Table(compositeMergeFeature, SWT.MULTI);
        tableMergeFeature.setHeaderVisible(true);
        tableMergeFeature.setLayoutData(gridData);
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

        gridLayout2.makeColumnsEqualWidth = true;

        compositeSourceFeatures = new Composite(sashForm, SWT.BORDER);
        compositeSourceFeatures.setLayout(gridLayout2);

        cLabelSources = new CLabel(compositeSourceFeatures, SWT.NONE);
        cLabelSources.setText(Messages.MergeFeaturesComposite_source);
        cLabelSources.setLayoutData(gridData3);

        createImageRegistry();
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

  public void fill(Composite parent) {
    statusLine = parent;

    Label sep = new Label(parent, SWT.SEPARATOR);
    label = new CLabel(statusLine, SWT.SHADOW_NONE);
    label.setText(text);   
   
    if (charWidth == CALC_TRUE_WIDTH) {
      // compute the size of the label to get the width hint for the contribution
      Point preferredSize = label.computeSize(SWT.DEFAULT, SWT.DEFAULT);
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.