Package com.eclipsesource.tabris.internal

Examples of com.eclipsesource.tabris.internal.ZIndexStackLayout


  }

  private UIImpl createUI( Class<? extends AbstractPage> pageType) {
    UIConfiguration configuration = new UIConfiguration();
    Shell shell = new Shell( new Display() );
    shell.setLayout( new ZIndexStackLayout() );
    ActionConfiguration actionConfiguration = new ActionConfiguration( "bar", TestAction.class );
    configuration.addPageConfiguration( new PageConfiguration( "fooRoot", TestPage.class ).setTopLevel( true ) );
    configuration.addPageConfiguration( new PageConfiguration( "foo", pageType )
      .addActionConfiguration( actionConfiguration ) );
    RemoteUI remoteUI = new RemoteUI( shell );
View Full Code Here


    Swipe swipe = new Swipe( shell, itemProvider );

    swipe.show( 0 );

    Composite control = ( Composite )swipe.getControl();
    ZIndexStackLayout layout = ( ZIndexStackLayout )control.getLayout();
    assertSame( item.getLoadedComposite(), layout.getOnTopControl() );
  }
View Full Code Here

    SwipeItemProvider itemProvider = mockProvider( 2 );
    TestItem item = mockSwipeItem( itemProvider, 0, true );
    TestItem item2 = mockSwipeItem( itemProvider, 1, true );
    Swipe swipe = new Swipe( shell, itemProvider );
    Composite control = ( Composite )swipe.getControl();
    ZIndexStackLayout layout = ( ZIndexStackLayout )control.getLayout();

    swipe.show( 0 );
    assertSame( item.getLoadedComposite(), layout.getOnTopControl() );

    swipe.show( 1 );
    assertSame( item2.getLoadedComposite(), layout.getOnTopControl() );
  }
View Full Code Here

   */
  public void create( Shell shell ) {
    whenNull( shell ).throwIllegalArgument( "Shell must not be null" );
    prepareShell( shell );
    RemoteUI remoteUI = new RemoteUI( shell );
    shell.setLayout( new ZIndexStackLayout() );
    Controller controller = new Controller( shell, remoteUI, configuration.getAdapter( UIDescriptor.class ) );
    UIImpl ui = prepareUi( shell, remoteUI, configuration, controller );
    configure( configuration, ui );
    setUiColors( shell, remoteUI, configuration );
    prepareController( controller, ui );
View Full Code Here

  }

  private void initialize() {
    remoteObject.set( PROPERTY_PARENT, WidgetUtil.getId( container ) );
    remoteObject.setHandler( new SwipeOperationHandler( this ) );
    container.setLayout( new ZIndexStackLayout() );
    if( manager.getProvider().getItemCount() > 0 ) {
      show( 0 );
    }
  }
View Full Code Here

    remoteObject.set( PROPERTY_ACTIVE, currentIndex );
    notifyItemActivated( listeners, currentItem, currentIndex, manager.getContext() );
  }

  private void setOnTopControl( Control control ) {
    ZIndexStackLayout layout = ( ZIndexStackLayout )container.getLayout();
    layout.setOnTopControl( control );
  }
View Full Code Here

    previousPage.getPage().activate();
    makeControlVisible( previousPage.getControl() );
  }

  private void makeControlVisible( Control control ) {
    ZIndexStackLayout stack = ( ZIndexStackLayout )shell.getLayout();
    stack.setOnTopControl( control );
    shell.layout( true );
  }
View Full Code Here

    previousPage.getPage().activate();
    makeControlVisible( previousPage.getControl() );
  }

  private void makeControlVisible( Control control ) {
    ZIndexStackLayout stack = ( ZIndexStackLayout )pageParent.getLayout();
    stack.setOnTopControl( control );
    pageParent.layout( true );
  }
View Full Code Here

  private void initialize() {
    remoteObject.set( PROPERTY_PARENT, WidgetUtil.getId( container ) );
    updateItemCount();
    remoteObject.setHandler( operationHandler );
    container.setLayout( new ZIndexStackLayout() );
    if( manager.getProvider().getItemCount() > 0 ) {
      show( 0 );
    }
  }
View Full Code Here

    }
    notifyItemActivated( listeners, currentItem, currentIndex, manager.getContext() );
  }

  private void setOnTopControl( Control control ) {
    ZIndexStackLayout layout = ( ZIndexStackLayout )container.getLayout();
    layout.setOnTopControl( control );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.internal.ZIndexStackLayout

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.