Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CLabel


   *
   * @param gridData4
   * @param gridData3
   */
  private void descriptionView(GridData gridData4, GridData gridData3) {
    CLabel descriptionLabel = new CLabel(this.shell, SWT.NONE);
    descriptionLabel.setText("Description");
    descriptionLabel.setLayoutData(gridData4);
    this.textArea = new Text(this.shell, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER);
    this.textArea.setLayoutData(gridData3);
    this.textArea.setEditable(false);
  }
View Full Code Here


   * Display the label and text for the available field.
   *
   * @param gridData
   */
  private void availableView(GridData gridData) {
    CLabel availableLabel = new CLabel(this.shell, SWT.NONE);
    availableLabel.setText("Available");
    this.availableText = new Text(this.shell, SWT.BORDER);
    this.availableText.setLayoutData(gridData);
    this.availableText.setEditable(false);
  }
View Full Code Here

   * Display the label and text for the name.
   *
   * @param gridData
   */
  private void nameView(GridData gridData) {
    CLabel nameLabel = new CLabel(this.shell, SWT.NONE);
    nameLabel.setText("Name");
    this.textName = new Text(this.shell, SWT.BORDER);
    this.textName.setLayoutData(gridData);
    this.textName.setEditable(false);
  }
View Full Code Here

   * Display the label and text for the id.
   *
   * @param gridData
   */
  private void idView(GridData gridData) {
    CLabel idLabel = new CLabel(this.shell, SWT.NONE);
    idLabel.setText("ID");
    this.textId = new Text(this.shell, SWT.BORDER);
    this.textId.setLayoutData(gridData);
    this.textId.setEditable(false);
  }
View Full Code Here

  /**
   * Create the input fields
   */
  private void createInputArea() {
    CLabel label = new CLabel(this.shell, SWT.None);
    label.setText("Enter Id: ");
   
    Spinner idOfGood = new Spinner(this.shell, SWT.BORDER);
    idOfGood.setMinimum(1);
   
    Spinner numOfGoods = new Spinner(this.shell, SWT.BORDER);
View Full Code Here

    labelGridData.horizontalAlignment = GridData.FILL;
    labelGridData.grabExcessHorizontalSpace = true;
    labelGridData.verticalSpan = 10;
    labelGridData.verticalAlignment = GridData.CENTER;

    CLabel label = new CLabel(shell, SWT.NONE);
    label.setText("Can't buy selected good, I'm sorry");
    label.setLayoutData(labelGridData);
  }
View Full Code Here

  /**
   * Fill the user interface.
   */
  private void fillUi() {
    CLabel label = new CLabel(this.shell, SWT.NONE);
    label.setText("Number:");

    this.spinner = new Spinner(this.shell, SWT.BORDER);
    this.spinner.setLayoutData(BuyGoodSelectNumOfGoodDialog.getComboGridData());

    this.buyButton = new Button(shell, SWT.NONE);
View Full Code Here

  }

  public void createPartControl(Composite parent) {
    parent.setLayout( new GridLayout(2, true) );
   
    colorDistribution = new CLabel(parent, SWT.BORDER);
    colorDistribution.setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true) );
    colorDistribution.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {}

      public void controlResized(ControlEvent e) {
        updateRequiredManaChart(null);
      }
     
    });
    createColorDistributionChart();
       
    manaCurve = new CLabel(parent, SWT.BORDER);
    manaCurve.setLayoutData( new GridData(SWT.FILL, SWT.FILL, true, true) );
    manaCurve.addControlListener(new ControlListener() {

      public void controlMoved(ControlEvent e) {}
View Full Code Here

    @Override
  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

          }
        }
      }
    };

    errorLabel = new CLabel(banner, SWT.NONE);
    GridData gridData = new GridData();
    errorLabel.setLayoutData(gridData);
    errorLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
    Font font = JFaceResources.getFontRegistry().getBold("Courier");
    errorLabel.setFont(font);
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.