Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowData


    numberLabel.setToolTipText("the numbering of the factor category");
   
    captionText = new TextEdit(captionComposite, SWT.BORDER | SWT.SINGLE);
    captionText.setToolTipText("please enter here the name for the factor category");
   
    numberLabel.setLayoutData(new RowData(100, 25));
    typeLabel.setLayoutData(new RowData(100, 25));
   
    newButton = new Button(captionComposite, SWT.FLAT);
    newButton.setText("new");
    newButton.setToolTipText("create a new the factor or factor category");
    newButton.setBackground(newButton.getParent().getBackground());
    newButton.setLayoutData(new RowData(35, 25));
   
    deleteButton = new Button(captionComposite, SWT.FLAT);
    deleteButton.setLayoutData(new RowData(25, 25));
    deleteButton.setBackground(deleteButton.getParent().getBackground());
    deleteButton.setToolTipText("delete the factor category");
  }
View Full Code Here


    headComposite.setBackground(Display.getDefault().getSystemColor(
        SWT.COLOR_WIDGET_NORMAL_SHADOW)); // headComposite.getParent().getBackground());

    titleLabel = new Label(headComposite, SWT.NONE);
    titleLabel.setBackground(headComposite.getBackground());
    titleLabel.setLayoutData(new RowData(707, 25));
  }
View Full Code Here

   * create controls for this part<br>
   */
  private void createCustomControls(){

    if (withAddButton == true){
      titleLabel.setLayoutData(new RowData(603,25));
   
      addButton = new Button(getHeadComposite(), SWT.FLAT);
      addButton.setText("add");
      addButton.setLayoutData(new RowData(35,25));
      addButton.setBackground(headComposite.getBackground());
    } else {
      titleLabel.setLayoutData(new RowData(643,25));
    }
     
      newButton = new Button(getHeadComposite(), SWT.FLAT);
      newButton.setText("new");
      newButton.setLayoutData(new RowData(35,25));
      newButton.setBackground(headComposite.getBackground());
     
      deleteAllButton = new Button(getHeadComposite(), SWT.FLAT);
      deleteAllButton.setLayoutData(new RowData(25,25));
      deleteAllButton.setBackground(headComposite.getBackground());
  }
View Full Code Here

    getBaseComposite().setBackground(bgColor);
   
    captionLabel = new Label(getBaseComposite(), SWT.NONE);
    captionLabel.setBackground(getBaseComposite().getBackground());

    captionLabel.setLayoutData(new RowData(75, 25));

    if (withEditableText) {
      nameText = new TextEdit(getBaseComposite(), SWT.BORDER | SWT.SINGLE);
      nameText.setEditable(true);
      nameText.setLayoutData(new RowData(600, 25));
    } else {
      nameText = new TextEdit(getBaseComposite(), SWT.NONE  | SWT.SINGLE);
      nameText.setEditable(false);
      nameText.setBackground(nameText.getParent().getBackground());

      nameText.setLayoutData(new RowData(610, 25));
    }

   

    deleteButton = new Button(getBaseComposite(), SWT.NONE);

    deleteButton.setLayoutData(new RowData(25, 25));
    deleteButton.setBackground(getBaseComposite().getBackground());

  }
View Full Code Here

          label.setToolTipText(proxy.getTooltipText(game, gameEx));
          System.out.println("Addin label with image: " + proxy.icon
              + ": " + label.computeSize(-1, -1));
          // label.setEnabled(true);
          // label.setText("Muh");
          label.setLayoutData(new RowData(16,16));
          if (game != null) {
            label.addListener(SWT.MouseUp, new Listener() {

              public void handleEvent(Event event) {
                //System.out.println("mouseup");
View Full Code Here

    Button button = new Button(container, SWT.CHECK);
    button.setText("Save this configuration");
    button.setSelection(true);
   
    configurationName = new Text(container, SWT.BORDER);
    configurationName.setLayoutData(new RowData(300, SWT.DEFAULT));
   
    button.addSelectionListener(new SelectionListener()
      {
      @Override
      public void widgetSelected(SelectionEvent event)
View Full Code Here

    Button button = new Button(container, SWT.CHECK);
    button.setText("Save this configuration");
    button.setSelection(true);
   
    configurationName = new Text(container, SWT.BORDER);
    configurationName.setLayoutData(new RowData(300, SWT.DEFAULT));
   
    button.addSelectionListener(new SelectionListener()
      {
      @Override
      public void widgetSelected(SelectionEvent event)
View Full Code Here

    Button button = new Button(container, SWT.CHECK);
    button.setText("Save this configuration");
    button.setSelection(true);
   
    configurationName = new Text(container, SWT.BORDER);
    configurationName.setLayoutData(new RowData(300, SWT.DEFAULT));
   
    button.addSelectionListener(new SelectionListener()
      {
      @Override
      public void widgetSelected(SelectionEvent event)
View Full Code Here

        GridData componentGridData = new GridData();
        componentGridData.verticalAlignment = SWT.BEGINNING;
        componentPanel.setLayoutData(componentGridData);

        Tree theComponent = new Tree(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(150, 450));

        root = new BasicTreeNode();
        root.setName("ROOT");

        childString = new String[4];
View Full Code Here

        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in
                                                                                     // awt

        // Combo box
        final ComboBox theComponent = new ComboBox(componentPanel, SWT.NONE);
        theComponent.setLayoutData(new RowData(150, 50));
        theComponent.setValueList(VALUES_1);
        theComponent.setDisplayedList(DISPLAYED_1);

        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.RowData

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.