Package com.eclipsesource.tabris.interaction

Examples of com.eclipsesource.tabris.interaction.AppLauncher.openUrl()


  @Test
  public void testOpenUrlCreatesCallOperation() {
    RemoteObject remoteObject = environment.getRemoteObject();
    AppLauncher launcher = new AppLauncherImpl();

    launcher.openUrl( "http://foo.bar" );

    ArgumentCaptor<JsonObject> captor = ArgumentCaptor.forClass( JsonObject.class );
    verify( remoteObject ).call( eq( "openUrl" ), captor.capture() );
    assertEquals( JsonValue.valueOf( "http://foo.bar" ), captor.getValue().get( "url" ) );
  }
View Full Code Here


  @Test( expected = IllegalArgumentException.class )
  public void testOpenUrlFailsWithNull() {
    AppLauncher launcher = new AppLauncherImpl();

    launcher.openUrl( null );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testOpenUrlFailsWithInvalidUrl() {
    AppLauncher launcher = new AppLauncherImpl();
View Full Code Here

  @Test( expected = IllegalArgumentException.class )
  public void testOpenUrlFailsWithInvalidUrl() {
    AppLauncher launcher = new AppLauncherImpl();

    launcher.openUrl( "fooBar" );
  }
}
View Full Code Here

   
    // Add an action to open a website
    imageLabel.addMouseListener( new MouseAdapter() {
      public void mouseUp( MouseEvent e ) {
        AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
        appLauncher.openUrl( "http://eclipsesource.com/blogs/tag/tabris/" );
      }
  } );
  }

}
View Full Code Here

   
    // Add an action to open a website
    imageLabel.addMouseListener( new MouseAdapter() {
      public void mouseUp( MouseEvent e ) {
        AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
        appLauncher.openUrl( "http://eclipsesource.com/blogs/tag/tabris/" );
      }
  } );
  }

}
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.