Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowLayout


    // Torrents
    // ========

    Composite cButtons = new Composite(shell, SWT.NONE);
    RowLayout rLayout = new RowLayout(SWT.HORIZONTAL);
    rLayout.marginBottom = 0;
    rLayout.marginLeft = 0;
    rLayout.marginRight = 0;
    rLayout.marginTop = 0;
    cButtons.setLayout(rLayout);
View Full Code Here


    torrentTable.setMenu(menu);

    Composite cTorrentListRight = new Composite(cArea, SWT.NONE);
    gridData = new GridData();
    cTorrentListRight.setLayoutData(gridData);
    RowLayout rLayout = new RowLayout(SWT.VERTICAL);
    rLayout.marginBottom = 0;
    rLayout.marginLeft = 0;
    rLayout.marginRight = 0;
    rLayout.marginTop = 0;
    if (!Constants.isOSX)
View Full Code Here

    cBottomArea.setLayout(gLayout);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    cBottomArea.setLayoutData(gridData);

    Composite cButtons = new Composite(cBottomArea, SWT.NONE);
    RowLayout rLayout = new RowLayout(SWT.HORIZONTAL);
    rLayout.wrap = false;
    rLayout.marginBottom = 0;
    rLayout.marginLeft = 0;
    rLayout.marginRight = 0;
    rLayout.marginTop = 0;
View Full Code Here

    gridData = new GridData();
    gridData.horizontalSpan = 4;
    final Group gRadio = new Group(cMode, 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

        GridLayout gridLayout = new GridLayout(2, true);
        parent.setLayout(gridLayout);
       
        Composite left = new Composite(parent, SWT.NONE);
        left.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true));
        RowLayout layout = new RowLayout();
        layout.center = true;
        left.setLayout(layout);
       
        Composite right = new Composite(parent, SWT.NONE);
        right.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, true));
        layout = new RowLayout();
        layout.center = true;
        right.setLayout(layout);

       
        _btnDirectAccess = new Button(right, SWT.CHECK);
View Full Code Here

    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

    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

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

    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

      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

TOP

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

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.