Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CLabel


    // TODO: cache -
    Color bkColor = new Color(Display.getDefault(), 0xff, 0xff, 0xe1);
   
    setBackground(bkColor);
   
    label = new CLabel(this, SWT.NONE);
    label.setImage(NotificationPlugin.getImage("icons/sample_alert.png"));
    label.setText("Lorem ipsum dolor sit ame elit, sed do eiusmod tempor.");
    label.setFont(JFaceResources.getDialogFont());
    label.setBackground(bkColor);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(label);
View Full Code Here


     *
     * @param parent the parent <code>Composite</code>.
     * @since 3.0
     */
    private void createImage(Composite parent) {
        descImageCanvas = new CLabel(parent, SWT.NONE);
        GridData data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING
                | GridData.VERTICAL_ALIGN_BEGINNING);
        data.widthHint = 0;
        data.heightHint = 0;
        descImageCanvas.setLayoutData(data);
View Full Code Here

        viewForm.setTopRight(systemToolbar.getControl());
       
        topCenter = new ProxyControl(viewForm);
        topCenterCache = new SizeCache();
       
        title = new CLabel(viewForm, SWT.LEFT);
        attachListeners(title, false);
        viewForm.setTopLeft(title);
    }
View Full Code Here

                .getImage(IWorkbenchGraphicConstants.IMG_LCL_VIEW_MENU);
        toolItem.setImage(hoverImage);

        viewForm.setTopRight(toolBar);

        viewMessage = new CLabel(viewForm, SWT.NONE);
        viewMessage.setText("Etu?"); //$NON-NLS-1$
        viewForm.setTopLeft(viewMessage);

        CTabItem item = new CTabItem(folder, SWT.CLOSE);
        item.setText("Lorem"); //$NON-NLS-1$
View Full Code Here

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

        Label sep = new Label(parent, SWT.SEPARATOR);
        label = new CLabel(statusLine, SWT.SHADOW_NONE);

        if (widthHint < 0) {
            GC gc = new GC(statusLine);
            gc.setFont(statusLine.getFont());
            FontMetrics fm = gc.getFontMetrics();
View Full Code Here

           
            setControl(composite);
    }
   
    private void createInformationCLabel() {
        CLabel cLabel1 = new CLabel(composite, SWT.NULL);
        cLabel1.setText("Pr�ximo passo, clique em Avan�ar.");
    }
View Full Code Here

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

    labelReferenceLine = new CLabel(compositeOperations, SWT.NONE);
    labelReferenceLine.setLayoutData(gridData);
    labelReferenceLine.setText(Messages.PrecisionTool_reference_line + ":" + referenceLine); //$NON-NLS-1$
    labelReferenceLine.setToolTipText(Messages.PrecisionTool_reference_line);
  }
View Full Code Here

    compositeLegend = new Composite(parent, SWT.NONE);
    compositeLegend.setLayout(gridLayout);
    compositeLegend.setLayoutData(gridData2);

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

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

    gridData1.horizontalAlignment = GridData.FILL;
    gridData1.grabExcessHorizontalSpace = true;
    gridData1.grabExcessVerticalSpace = false;
    gridData1.verticalAlignment = GridData.BEGINNING;

    CLabel lbl = new CLabel(this, SWT.NONE);
    lbl.setLayoutData(gridData1);
    lbl.setText(""); //$NON-NLS-1$
  }
View Full Code Here

  /**
   * Display the label and text for the price.
   */
  private void priceView() {
    CLabel priceLabel = new CLabel(this.shell, SWT.NONE);
    priceLabel.setText("Price");
    this.priceText = new Text(this.shell, SWT.BORDER);
    this.priceText.setEditable(false);
  }
View Full Code Here

TOP

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

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.