Examples of CLabel


Examples of org.eclipse.swt.custom.CLabel

    solutionTableStack = new Composite(composite, SWT.NONE);
    solutionTableStack.setLayout(solutionTableStackLayout);
    solutionTableStack.setLayoutData(tableGridLayout);

    CLabel solutionTablesLabel = new CLabel(composite, SWT.SHADOW_ETCHED_IN);
    solutionTablesLabel.setBackground(labelColor, new int[] { 100 });
    solutionTablesLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
    solutionTablesLabel.setText("Solution tables");
    solutionTablesLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
   
    solutionFileList = new List(composite, SWT.BORDER | SWT.SIMPLE | SWT.H_SCROLL | SWT.V_SCROLL);
    solutionFileList.setToolTipText("Select which table you want to see");
    GridData fileListLayoutData = new GridData(SWT.FILL, SWT.BEGINNING, true, true, 1, 1);
    solutionFileList.setLayoutData(fileListLayoutData);
View Full Code Here

Examples of org.eclipse.swt.custom.CLabel

    sourceTableStack = new Composite(composite, SWT.NONE);
    sourceTableStack.setLayout(sourceTableStackLayout);
    sourceTableStack.setLayoutData(tableGridLayout);
   
    CLabel sourceTablesLabel = new CLabel(composite, SWT.SHADOW_ETCHED_IN);
    sourceTablesLabel.setBackground(labelColor, new int[] { 100 });
    sourceTablesLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
    sourceTablesLabel.setText("Source tables");
    sourceTablesLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false, 1, 1));

    sourceFileList = new List(composite, SWT.BORDER | SWT.SIMPLE | SWT.H_SCROLL | SWT.V_SCROLL);
    sourceFileList.setToolTipText("Select which table you want to edit");
    sourceFileList.setLayoutData(fileListLayoutData);
    sourceFileList.addSelectionListener(sourceFileListSelectionListener);
    sourceFileList.add("Resource needs", 0);
    sourceFileList.add("Atomic jobs", 1);
    sourceFileList.add("Resources", 2);
    sourceFileList.add("Traffic periods", 3);
    sourceFileList.add("Places", 4);
    sourceFileList.add("Permissions", 5);
    sourceFileList.add("Shifts", 6);
    sourceFileList.add("Travellings", 7);
    sourceFileList.add("Starting state", 8);
    sourceFileList.setSelection(0);
   
    CLabel algGroupLabel = new CLabel(composite, SWT.SHADOW_ETCHED_IN);
    algGroupLabel.setBackground(labelColor, new int[] { 100 });
    algGroupLabel.setFont(new Font(null, "Tahoma", 8, SWT.BOLD));
    algGroupLabel.setText("Algorithms");
    algGroupLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));

    algSelector = new Combo(composite, SWT.SIMPLE | SWT.DROP_DOWN | SWT.READ_ONLY);
    algSelector.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 1, 1));
    algSelector.setEnabled(false);
    algSelector.addListener(SWT.Selection, algSelectorListener);
   
    for (int i = 0; i < ResourceAllocation.algorithms.length; i++) {
      algSelector.add(ResourceAllocation.algorithms[i]);
    }

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

    optionsGroup = new Group(composite, SWT.NONE);
    optionsGroup.setLayout(new GridLayout(8, false));
    optionsGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    optionsGroup.setToolTipText("Possible modifiers for selected algorithm.");
View Full Code Here

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

Examples of org.eclipse.swt.custom.CLabel

    };

    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

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));
       
        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

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));
    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

Examples of org.eclipse.swt.custom.CLabel

    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

Examples of org.eclipse.swt.custom.CLabel

  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

Examples of org.eclipse.swt.custom.CLabel

      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

Examples of org.eclipse.swt.custom.CLabel

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