Examples of ScrolledComposite


Examples of org.eclipse.swt.custom.ScrolledComposite

    topLabel = new Label(peerInfoComposite, SWT.NULL);
    gridData = new GridData(SWT.FILL, SWT.DEFAULT, false, false);
    topLabel.setLayoutData(gridData);

    sc = new ScrolledComposite(peerInfoComposite, SWT.V_SCROLL);
    sc.setExpandHorizontal(true);
    sc.setExpandVertical(true);
    layout = new GridLayout();
    layout.horizontalSpacing = 0;
    layout.verticalSpacing = 0;
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

              //Setup main_menu
              main_menu = new MainMenu(shell,instance);
              //Setup tool bar
              toolbar = new Toolbar(shell,_core,instance);
   
              window_content = new ScrolledComposite(shell,SWT.NONE);
              window_content.setExpandHorizontal(true);
              window_content.setExpandVertical(true);
              window_content.setLayout(new FillLayout());
              GridData gridData = new GridData(GridData.FILL_BOTH);
              window_content.setLayoutData(gridData);
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

   
    GridData ld = new GridData(GridData.FILL_VERTICAL);
    ld.widthHint = 120;
    tabs_tree.setLayoutData(ld);
   
    settings_tab_panel = new ScrolledComposite(window_content,SWT.NONE);
    settings_tab_panel.setLayoutData(new GridData(GridData.FILL_BOTH));
    settings_tab_panel.setExpandHorizontal(true);
    settings_tab_panel.setExpandVertical(true);
    settings_tab_panel.setLayout(new FillLayout());
   
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

        checkPrincipalPasswordAuthButton.setLayoutData( gd );
        checkPrincipalPasswordAuthButton.setText( Messages
            .getString( "AuthenticationParameterPage.CheckAuthentication" ) ); //$NON-NLS-1$
        checkPrincipalPasswordAuthButton.setEnabled( false );

        ScrolledComposite sc = new ScrolledComposite( parent, SWT.H_SCROLL | SWT.V_SCROLL );
        sc.setLayout( new GridLayout() );
        sc.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
        Composite c = BaseWidgetUtils.createColumnContainer( sc, 1, 1 );
        sc.setContent( c );

        saslExpandableComposite = createExpandableSection( c, Messages
            .getString( "AuthenticationParameterPage.SaslOptions" ), 1 ); //$NON-NLS-1$
        saslComposite = BaseWidgetUtils.createColumnContainer( saslExpandableComposite, 2, 1 );
        saslExpandableComposite.setClient( saslComposite );
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

        mainComposite = new Composite(parent, SWT.NONE);

        Group group = new Group(mainComposite, SWT.NONE);
        group.setText("Properties");
        group.setLayout(new FillLayout());
        ScrolledComposite scroller = new ScrolledComposite(group, SWT.V_SCROLL);
        fieldContainer = new Composite(scroller, SWT.NONE);
        scroller.setMinSize(200, 200);
        scroller.setExpandVertical(true);
        scroller.setExpandHorizontal(true);
        scroller.setContent(fieldContainer);

        Label separator = new Label(mainComposite, SWT.SEPARATOR | SWT.HORIZONTAL);

        Composite classpathComposite = new Composite(mainComposite, SWT.NONE);
        new Label(classpathComposite, SWT.NONE).setText("Classpath:");
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

    Widgets.onScrollingComposite( null );
  }

  @Test
  public void testOnScrolledCompositeDoesNotCache() {
    ScrolledComposite widget = mock( ScrolledComposite.class );

    WidgetDecorator<ScrolledCompositeDecorator> decorator1 = Widgets.onScrolledComposite( widget );
    WidgetDecorator<ScrolledCompositeDecorator> decorator2 = Widgets.onScrolledComposite( widget );

    assertNotSame( decorator1, decorator2 );
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

  }

  @Test
  public void testExpandsHorizontal() {
    ScrollingComposite composite = new ScrollingComposite( shell, SWT.H_SCROLL );
    ScrolledComposite scrolledComposite = ( ScrolledComposite )composite.getParent();

    boolean expandHorizontal = scrolledComposite.getExpandHorizontal();

    assertTrue( expandHorizontal );
  }
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

  }

  @Test
  public void testExpandsVertical() {
    ScrollingComposite composite = new ScrollingComposite( shell, SWT.H_SCROLL );
    ScrolledComposite scrolledComposite = ( ScrolledComposite )composite.getParent();

    boolean expandVertical = scrolledComposite.getExpandVertical();

    assertTrue( expandVertical );
  }
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

  }

  @Test
  public void testDelegatesLayoutData() {
    ScrollingComposite composite = new ScrollingComposite( shell, SWT.H_SCROLL );
    ScrolledComposite scrolledComposite = ( ScrolledComposite )composite.getParent();
    GridData data = new GridData();

    composite.setLayoutData( data );

    assertSame( data, scrolledComposite.getLayoutData() );
  }
View Full Code Here

Examples of org.eclipse.swt.custom.ScrolledComposite

  }

  @Test
  public void testSetsVerticalAndHorizontalMinSize() {
    ScrollingComposite composite = new ScrollingComposite( shell, SWT.H_SCROLL | SWT.V_SCROLL );
    ScrolledComposite scrolledComposite = ( ScrolledComposite )composite.getParent();
    scrolledComposite.setBounds( 0, 0, 200, 300 );
    Point size = composite.computeSize( SWT.DEFAULT, SWT.DEFAULT );

    int minWidth = scrolledComposite.getMinWidth();
    int minHeight = scrolledComposite.getMinHeight();

    assertEquals( size.x, minWidth );
    assertEquals( size.y, minHeight );
  }
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.