Examples of CLabel


Examples of org.eclipse.swt.custom.CLabel

   * @see IContributionItem#fill(Composite)
   */
  public void fill(Composite parent) {

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

    fLabel.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        fMouseListener= null;
      }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

        loadingImageLData.right = new FormAttachment(100, 100, 0);
        loadingImageLData.top = new FormAttachment(0, 100, 0);
        loadingImageLData.bottom = new FormAttachment(100, 100, -50);
        loadingImage.setLayoutData(loadingImageLData);

        statusTextCLabel = new CLabel(this, SWT.NONE);
        statusTextCLabel.setText("Loading...");
        FormData statusTextLData = new FormData(loadingImage.getSize().x-5, 20);
        statusTextLData.left = new FormAttachment(0, 100, 5);
        statusTextLData.right = new FormAttachment(100, 100, -5);
        statusTextLData.bottom = new FormAttachment(100, 100, -28);
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

     * Builds a default CLabel
     * @param title The text for the label to contain
     * @return The created CLabel
     */
    protected CLabel getDefaultCLabel(String title) {
        CLabel label = new CLabel(this, SWT.RIGHT);
        label.setText(title);
        return label;
    }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    Composite composite = new Composite(sash,SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.marginHeight      = 0;
    layout.marginWidth       = 0;
    composite.setLayout(layout);
    CLabel label = new CLabel(composite,SWT.NULL);
    label.setText(HTMLPlugin.getResourceString("ImageView.Preview"));
    label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    canvas = new ScaleableImageCanvas(composite,SWT.BORDER);
    canvas.setLayoutData(new GridData(GridData.FILL_BOTH));
  }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    applyDialogFont(composite);
    // initialize the dialog units
    initializeDialogUnits(composite);
    // create the dialog area and button bar
    dialogArea = createDialogArea(composite);
    errorLabel = new CLabel(composite, SWT.NULL);
    errorLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    buttonBar = createButtonBar(composite);
   
    validate();
   
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    }
    gc.dispose();

    int minHeight = typicalHeight * lines.length;

    CLabel imgLabel = new CLabel(inner, SWT.NONE);
    imgLabel.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_BEGINNING));
    imgLabel.setImage(_informationImage);

    CLabel titleLabel = new CLabel(inner, SWT.NONE);
    titleLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER));
    titleLabel.setText(Constants.APP_NAME);
    titleLabel.setForeground(_titleFgColor);
    Font f = titleLabel.getFont();
    FontData fd = f.getFontData()[0];
    fd.setStyle(SWT.BOLD);
    _titleFont = new Font(null, fd);
    titleLabel.setFont(_titleFont);

    Label text = new Label(inner, SWT.WRAP);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan = 2;
    //gd.horizontalAlignment = SWT.CENTER;
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    }
    gc.dispose();

    int minHeight = typicalHeight * lines.length;

    CLabel imgLabel = new CLabel(inner, SWT.NONE);
    imgLabel.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_BEGINNING));
    imgLabel.setImage(_informationImage);

    CLabel titleLabel = new CLabel(inner, SWT.NONE);
    titleLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER));
    titleLabel.setText(Constants.APP_NAME);
    titleLabel.setForeground(_titleFgColor);
    Font f = titleLabel.getFont();
    FontData fd = f.getFontData()[0];
    fd.setStyle(SWT.BOLD);
    _titleFont = new Font(null, fd);
    titleLabel.setFont(_titleFont);

    Label text = new Label(inner, SWT.NONE);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan = 2;
    text.setLayoutData(gd);
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

   
    Composite cont = factory.createComposite(parent, SWT.NO_FOCUS);
    GridLayout layout = new GridLayout(1, false);
    cont.setLayout(layout);

    CLabel lbl =
      factory.createCLabel(cont, PDPlugin.getResourceString("QuickEditTab.no_quick_edit_md"));//$NON-NLS-1$
    lbl.setLayoutData(new GridData());   
  }
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

        super(parent, style);

        SarosPluginContext.initComponent(this);

        this.setLayout(LayoutUtils.createGridLayout(1, false, 10, 3, 0, 0));
        stateLabel = new CLabel(this, SWT.NONE);
        stateLabel.setLayoutData(LayoutUtils.createFillHGrabGridData());
        FontUtils.makeBold(stateLabel);

        updateLabel(saros.getSarosNet().getConnectionState());
        this.stateLabel.setForeground(getDisplay().getSystemColor(
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

     *
     * @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
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.