Package com.eclipsesource.tabris.widgets

Examples of com.eclipsesource.tabris.widgets.ScrollingComposite


  private void createContent( Display display, final Shell shell, int scrollStyle ) {
    scrollingArea = new Composite( shell, SWT.NONE );
    scrollingArea.setLayout( GridLayoutFactory.fillDefaults().numColumns( 1 ).spacing( 0, 0 ).create() );
    createToolBar();
    ScrollingComposite scrollingParent = createScrollingComposite( display, scrollingArea, scrollStyle );
    addData( scrollingParent );
    Composite controlsParent = createActionsArea( scrollingArea );
    Text itemNumberText = new Text( controlsParent, SWT.BORDER );
    Widgets.onText( itemNumberText ).useNumberKeyboard();
    itemNumberText.setMessage( "Enter Item # and ..." );
View Full Code Here


    controlsParent.setBackground( parent.getDisplay().getSystemColor( SWT.COLOR_GRAY ) );
    return controlsParent;
  }

  private ScrollingComposite createScrollingComposite( Display display, Composite parent, int scrollStyle ) {
    final ScrollingComposite scrollableParent = new ScrollingComposite( parent, scrollStyle );
    int layoutStyle = scrollStyle == SWT.V_SCROLL ? SWT.VERTICAL : SWT.HORIZONTAL;
    scrollableParent.setLayout( RowLayoutFactory.fillDefaults().type( layoutStyle ).wrap( false ).fill( true ).create() );
    scrollableParent.setLayoutData( GridDataFactory.fillDefaults().grab( true, true ).align( SWT.CENTER, SWT.FILL ).create() );
    scrollableParent.setBackground( new Color( display, 255, 255, 255 ) );
    return scrollableParent;
  }
View Full Code Here

    toolItem.setText( "Keyboard Types" );
    onToolItem( toolItem ).useAsTitle();
  }

  private Composite createParentComposite( final Shell shell ) {
    ScrollingComposite comp = new ScrollingComposite( shell, SWT.VERTICAL );
    GridLayout compLayout = new GridLayout( 2, false );
    compLayout.marginWidth = 16;
    compLayout.horizontalSpacing = 16;
    comp.setLayout( compLayout );
    comp.setLayoutData( GridDataFactory.fillDefaults().align( SWT.FILL, SWT.FILL ).grab( true, true ).create() );
    return comp;
  }
View Full Code Here

    Shell shell = new Shell( display, SWT.NO_TRIM );
    shell.setMaximized( true );
    shell.setLayout( new FillLayout() );
    ClientDevice clientDevice = RWT.getClient().getService( ClientDevice.class );
    App app = RWT.getClient().getService( App.class );
    ScrollingComposite scrollingComposite = new ScrollingComposite( shell, SWT.V_SCROLL );
    scrollingComposite.setLayout( new FillLayout() );
    createContent( clientDevice, app, scrollingComposite );
    shell.open();
    return 0;
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.widgets.ScrollingComposite

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.