Package com.eclipsesource.tabris.widgets.swipe

Examples of com.eclipsesource.tabris.widgets.swipe.Swipe


    new SwipeOperationHandler( null );
  }

  @Test
  public void testNotifiesAboutSwipeEvent() {
    Swipe swipe = mock( Swipe.class );
    SwipeOperationHandler handler = new SwipeOperationHandler( swipe );
    JsonObject properties = new JsonObject();
    properties.add( "item", 0 );

    handler.handleNotify( "Swipe", properties );
View Full Code Here


    verify( swipe ).show( 0 );
  }

  @Test
  public void testSetsActiveClientItem() {
    Swipe swipe = mock( Swipe.class );
    SwipeOperationHandler handler = new SwipeOperationHandler( swipe );
    JsonObject properties = new JsonObject();
    properties.add( "item", 0 );

    handler.handleNotify( "Swipe", properties );
View Full Code Here

    onToolItem( toolItem ).useAsTitle();
  }

  private void createSwipeWidget( Composite parent ) {
    DictionarySwipeItemProvider itemProvider = new DictionarySwipeItemProvider();
    Swipe result = new Swipe( parent, itemProvider );
    GridDataFactory.fillDefaults()
      .grab( true, true )
      .align( SWT.FILL, SWT.FILL )
      .applyTo( result.getControl() );
    result.show( 0 );
    createPagingIndicator( parent, result, itemProvider.getItemCount() );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.widgets.swipe.Swipe

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.