Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowLayout


            public void paintControl(final PaintEvent e) {
                paintPattern(e.gc);
            }
        });
        parent.addControlListener(this);
        RowLayout rl = new RowLayout();
        rl.type = SWT.VERTICAL;
        rl.wrap = false;
        rl.justify = true;
        parent.setLayout(rl);
    }
View Full Code Here


     */
    public final void createPartControl(final Composite parent) {
        topshell = parent;
        topshell.addControlListener(this);
        cm = new ColorMap(topshell.getDisplay());
        RowLayout rl = new RowLayout();
        rl.type = SWT.VERTICAL;
        rl.wrap = false;
        rl.justify = true;
        topshell.setLayout(rl);
        preference = new Composite(topshell, SWT.BORDER);
        preference.setLayoutData(new RowData(
                topshell.getClientArea().width, 50));
        RowLayout rl2 = new RowLayout();
        rl2.spacing = 10;
        preference.setLayout(rl2);
        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
View Full Code Here

    public final void createPartControl(final Composite parent) {
        topshell = parent;
        topshell.addControlListener(this);
        disp = parent.getDisplay();
        cm = new ColorMap(disp);
        RowLayout rl = new RowLayout();
        rl.type = SWT.VERTICAL;
        rl.wrap = false;
        rl.justify = true;
        topshell.setLayout(rl);
        topshell.addDisposeListener(this);
        preference = new Composite(topshell, SWT.BORDER);
        preference.setLayoutData(
                new RowData(topshell.getClientArea().width, 50));
        preference.setLayout(new RowLayout());
        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
View Full Code Here

    public final void createPartControl(final Composite parent) {
        Activator.getDefault().ctr = this;
        disp = parent.getDisplay();
        Composite c = new Composite(parent, SWT.NONE);
        topshell = parent.getShell();
        c.setLayout(new RowLayout());
        btNewHistogram = new Button(c, SWT.PUSH);
        btNewHistogram.setText("New Histogram");
        btNewHistogram.addSelectionListener(this);
        btNewHistogram.addDisposeListener(this);
        btNewPattern = new Button(c, SWT.PUSH);
View Full Code Here

            public void paintControl(final PaintEvent e) {
                paintPattern(e.gc);
            }
        });
        parent.addControlListener(this);
        RowLayout rl = new RowLayout();
        rl.type = SWT.VERTICAL;
        rl.wrap = false;
        rl.justify = true;
        parent.setLayout(rl);
    }
View Full Code Here

    assertEquals( "groupedEventComposite", variant );
  }

  @Test
  public void testExcludesFacadeFromLayoutingWithRowLayout() {
    composite.setLayout( new RowLayout() );

    decorator.addGroupedListener( SWT.Selection, mock( Listener.class ) );

    Control facade = composite.getChildren()[ 0 ];
    RowData layoutData = ( RowData )facade.getLayoutData();
View Full Code Here

  @Test
  public void testRevealsItem() {
    shell.setSize( 100, 100 );
    shell.setLayout( new FillLayout() );
    ScrollingComposite composite = new ScrollingComposite( shell, SWT.V_SCROLL );
    composite.setLayout( new RowLayout( SWT.VERTICAL ) );
    createChildren( composite );
    Control child = composite.getChildren()[ 80 ];

    composite.reveal( child );
View Full Code Here

  @Test
  public void testIsNotRevealedByDefault() {
    shell.setSize( 100, 100 );
    shell.setLayout( new FillLayout() );
    ScrollingComposite composite = new ScrollingComposite( shell, SWT.V_SCROLL );
    composite.setLayout( new RowLayout( SWT.VERTICAL ) );
    createChildren( composite );
    Control child = composite.getChildren()[ 80 ];
    shell.layout( true, true );

    boolean revealed = composite.isRevealed( child );
View Full Code Here

    client.setLayout(new GridLayout());
    GridDataFactory.fillDefaults().grab(true, true).applyTo(client);
    section.setClient(client);

    Composite headerComposite = toolkit.createComposite(section, SWT.NONE);
    RowLayout rowLayout = new RowLayout();
    rowLayout.marginTop = 0;
    rowLayout.marginBottom = 0;
    headerComposite.setLayout(rowLayout);
    headerComposite.setBackground(null);
View Full Code Here

    client.setLayout(new GridLayout());
    GridDataFactory.fillDefaults().grab(true, true).applyTo(client);
    servicesSection.setClient(client);

    Composite headerComposite = toolkit.createComposite(servicesSection, SWT.NONE);
    RowLayout rowLayout = new RowLayout();
    rowLayout.marginTop = 0;
    rowLayout.marginBottom = 0;
    headerComposite.setLayout(rowLayout);
    headerComposite.setBackground(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.