Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.CLabel


    private void createComponents(Composite parent) {
        GridLayout layout = new GridLayout(4, true);

        this.setLayout(layout);

        this.serverOnlineLabel = new CLabel(this, SWT.LEFT | SWT.BORDER);
        this.serverOnlineLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        this.userLabel = new CLabel(this, SWT.CENTER | SWT.BORDER);
        this.userLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        this.updatesLabel = new CLabel(this, SWT.CENTER | SWT.BORDER);
        this.updatesLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        this.dateLabel = new CLabel(this, SWT.RIGHT | SWT.BORDER);
        this.dateLabel.setLayoutData(new GridData(GridData.FILL_BOTH));
    }
View Full Code Here


    };

    Composite settingsContainer = new Composite(tabFolder, SWT.NONE);
    settingsContainer.setLayout(new GridLayout(1, false));

    CLabel userSettingsLabel = new CLabel(settingsContainer, SWT.SHADOW_ETCHED_IN);
    userSettingsLabel.setText("User settings");
    userSettingsLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
    userSettingsLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
    userSettingsLabel.setBackground(labelColor, new int[] { 100 });

    Group userContainer = new Group(settingsContainer, SWT.NONE);
    userContainer.setLayout(containerLayout);

    CLabel serverSettingsLabel = new CLabel(settingsContainer, SWT.SHADOW_ETCHED_IN);
    serverSettingsLabel.setText("Server settings");
    serverSettingsLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
    serverSettingsLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
    serverSettingsLabel.setBackground(labelColor, new int[] { 100 });

    Group serverContainer = new Group(settingsContainer, SWT.NONE);
    serverContainer.setLayout(containerLayout);

    CLabel applicationSettingsLabel = new CLabel(settingsContainer, SWT.SHADOW_ETCHED_IN);
    applicationSettingsLabel.setText("Application settings");
    applicationSettingsLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
    applicationSettingsLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 3, 1));
    applicationSettingsLabel.setBackground(labelColor, new int[] { 100 });

    Group applicationContainer = new Group(settingsContainer, SWT.NONE);
    applicationContainer.setLayout(new GridLayout(3, false));

    /** User settings */
 
View Full Code Here

        }
        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));
       
        if(type!=null){
          imgLabel.setImage(type.getImage());
        }

        CLabel titleLabel = new CLabel(inner, SWT.NONE);
        titleLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL
            | GridData.VERTICAL_ALIGN_CENTER));
        titleLabel.setText(title);
        titleLabel.setForeground(titleColor);
        Font f = titleLabel.getFont();
        FontData fd = f.getFontData()[0];
        fd.setStyle(SWT.BOLD);
        fd.height = 11;
        titleLabel.setFont(FontCache.getFont(fd));

        Label text = new Label(inner, SWT.WRAP);
        Font tf = text.getFont();
        FontData tfd = tf.getFontData()[0];
        tfd.setStyle(SWT.BOLD);
View Full Code Here

    }
    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));
    if(type != null) imgLabel.setImage(type.getImage());

    CLabel titleLabel = new CLabel(inner, SWT.NONE);
    titleLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER));
    titleLabel.setText(title);
    titleLabel.setForeground(_titleFgColor);
    Font f = titleLabel.getFont();
    FontData fd = f.getFontData()[0];
    fd.setStyle(SWT.BOLD);
    fd.height = 11;
    titleLabel.setFont(FontCache.getFont(fd));
    titleLabel.addMouseListener(new MouseAdapter() {
      public void mouseDoubleClick(MouseEvent e) {
        System.out.println(" da xay ra 111 "+ id);
        NotificationEvent event = new NotificationEvent(id);
        if(listener != null) listener.clicked(event);
      }
View Full Code Here

    this(parent, style, new VS2005ThemeRender());
  }

  public MenuBar(Composite parent, int style, ThemeRender theme)
  {
    menubar = new CLabel(parent, style)
    {
      public Point computeSize(int wHint, int hHint, boolean changed)
      {
        if (this.isVisible())
        {
View Full Code Here

  private boolean menuTracked;

  public CToolBar(Composite parent, int style, ThemeRender theme)
  {
    toolbar = new CLabel(parent, SWT.NONE)
    {
      public Point computeSize(int wHint, int hHint, boolean changed)
      {
        if (this.isVisible())
        {
View Full Code Here

      hook.installHook();
      activate();
    } catch (SWTException ex) {
      if (oleFrame != null && !oleFrame.isDisposed())
        oleFrame.dispose();
      errorLabel = new CLabel(this, SWT.CENTER);
      errorLabel.setText("Unable to create Flash control");
      return;
    }

    // ReadyStateChange event
View Full Code Here

          locateAddress(addressBar.getText());
        }
      }
    });
   
    CLabel findBtn = new CLabel(mainCmp, SWT.NONE);
    findBtn.setImage(MapActivator.getDefault().getImageRegistry().get(MapActivator.FIND_BTN_IMG));
    findBtn.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseDown(MouseEvent e) {
        locateAddress(addressBar.getText());
      }
    });
    findBtn.setCursor(UIUtils.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
   
    mapTile = new MapTile(mainCmp, SWT.BORDER);
    mapTile.configureJavaSupport(new BaseJavaMapSupport(mapTile.getMapControl()){
        @Override
        public void setZoomLevel(int newZoomLevel) {
View Full Code Here

    data.widthHint = 200;
    timeZoneCombo.setLayoutData(data);
  }

  private void createTimeInformationLagel() {
    CLabel cLabel = new CLabel(group, SWT.NULL);
    GridData data = new GridData();
    data.horizontalSpan = 2;
    cLabel.setLayoutData(data);
    cLabel.setText("Selecione primeiro a hora de In�cio e em seguida a hora do fim do expediente.");
  }
View Full Code Here

        createFinalFinalMessage();
        setControl(composite);
    }

    private void createFinalMessage() {
        CLabel cLabel = new CLabel(composite, SWT.NULL);
        cLabel.setText("Voc� completou com sucesso o Assistente.");
        CLabel cLabel1 = new CLabel(composite, SWT.NULL);
        cLabel1.setText("Todos os ajustes ou outros podem ser alterados clicando na Central de Prefer�ncias.");
    }
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.