Examples of RowLayout


Examples of org.eclipse.swt.layout.RowLayout

    layout.marginWidth = 0;
    cChecksAndButtons.setLayout(layout);
    cChecksAndButtons.setLayoutData(new GridData());

    final Composite cChecks = new Composite(cChecksAndButtons, SWT.NULL);
    RowLayout rowLayout = new RowLayout(SWT.VERTICAL);
    rowLayout.wrap = true;
    rowLayout.marginLeft = 0;
    rowLayout.marginRight = 0;
    rowLayout.marginTop = 0;
    rowLayout.marginBottom = 0;
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    Composite legend = new Composite(panel, SWT.NONE);
    if (layoutData != null)
      legend.setLayoutData(layoutData);

    RowLayout layout = new RowLayout(SWT.HORIZONTAL);
    layout.wrap = true;
    layout.marginBottom = 0;
    layout.marginTop = 0;
    layout.marginLeft = 0;
    layout.marginRight = 0;
    layout.spacing = 0;
    legend.setLayout(layout);

    RowData data;
    for (int i = 0; i < blockColors.length; i++) {
      int r = config.getIntParameter(keys[i] + ".red", -1);
      if (r >= 0) {
        int g = config.getIntParameter(keys[i] + ".green");
        int b = config.getIntParameter(keys[i] + ".blue");
       
        Color color = ColorCache.getColor(panel.getDisplay(), r, g, b);
        blockColors[i] = color;
      }

      Composite colorSet = new Composite(legend, SWT.NONE);

      colorSet.setLayout(new RowLayout(SWT.HORIZONTAL));

      final Canvas cColor = new Canvas(colorSet, SWT.BORDER);
      cColor.setData("Index", new Integer(i));
      // XXX Use paint instead of setBackgrond, because OSX does translucent
      // crap
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    //// USER MODE GROUP ////
    gridData = new GridData();
    final Group gRadio = new Group(panel, SWT.WRAP);
    Messages.setLanguageText(gRadio, "ConfigView.section.mode.title");
    gRadio.setLayoutData(gridData);
    gRadio.setLayout(new RowLayout(SWT.HORIZONTAL));

    Button button0 = new Button (gRadio, SWT.RADIO);
    Messages.setLanguageText(button0, "ConfigView.section.mode.beginner");
    button0.setData("iMode", "0");
    button0.setData("sMode", "beginner.text");
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    SWTSkin skin = skinnedDialog.getSkin();

    SWTSkinObjectText soInfoTitle = (SWTSkinObjectText) skin.getSkinObject("info-title");
    SWTSkinObjectText soInfoText = (SWTSkinObjectText) skin.getSkinObject("info-text");

    RowLayout layout = new RowLayout(SWT.HORIZONTAL);
    layout.spacing = 0;
    layout.marginLeft = layout.marginRight = 0;
    layout.wrap = true;
    layout.justify = true;
    layout.fill = true;
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

      fd.height = 0;
      centerCanvas.setLayoutData(fd);
     
     
      Composite area = new Composite(parent, SWT.NONE);
      RowLayout rowLayout = new RowLayout(SWT.VERTICAL);
      rowLayout.fill = true;
      area.setLayout(rowLayout);
      fd = Utils.getFilledFormData();
      fd.left = new FormAttachment(centerCanvas, 50, SWT.CENTER);
      fd.right = null;
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

 
  public ScrolledContent(Composite parent) {
    super(parent, SWT.H_SCROLL | SWT.V_SCROLL);
    setExpandVertical(true);
    setExpandHorizontal(true);
    RowLayout layout = new RowLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    setLayout(layout);
  }
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    table.setHeaderVisible(true);
   
    Composite cButtonArea = new Composite(shell, SWT.NULL);
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
    cButtonArea.setLayoutData(gridData);
    RowLayout rLayout = new RowLayout(SWT.HORIZONTAL);
    rLayout.marginLeft = 0;
   rLayout.marginTop = 0;
   rLayout.marginRight = 0;
   rLayout.marginBottom = 0;
   rLayout.spacing = 5;
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

            GridData data = new GridData(GridData.FILL_BOTH);
            ((Composite) message).setLayoutData(data);
        }
   
    Composite c2 = new Composite(shell, 0);
    RowLayout rowLayout = new RowLayout ();
    c2.setLayout (rowLayout);

    // Create the OK button and add a handler
    // so that pressing it will set input
    // to the entered value
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        createComposite();
        composite = new Composite(group2, SWT.NONE);
        composite.setLayout(new RowLayout(SWT.HORIZONTAL));
        composite.setLayoutData(new org.eclipse.swt.layout.GridData(GridData.END, GridData.CENTER, true, false));
        bStop = new Button(group2, SWT.RADIO);
        bStop.setText("stop");
        bStop.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    });
    label7 = new Label(gMain, SWT.NONE);
    label7.setText("Order Job:");
    cOrder = new Composite(gMain, SWT.NONE);
    cOrder.setLayout(new RowLayout());
    bOrderYes = new Button(cOrder, SWT.RADIO);
   
    bOrderYes.setText("Yes");
    bOrderYes.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
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.