Package com.eclipsesource.tabris.interaction

Examples of com.eclipsesource.tabris.interaction.AppLauncher


    } );
    return button;
  }

  protected void openLocation( double latitude, double longitude ) {
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    if( appLauncher != null ) {
      MapsOptions mapsOptions = new MapsOptions( latitude, longitude );
      appLauncher.open( mapsOptions );
    }
  }
View Full Code Here


public class ShareAction extends AbstractAction {

  @Override
  public void execute() {
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    if( appLauncher != null ) {
      Book book = getCurrentPageData().get( BOOK_ITEM, Book.class );
      String body = format( "Check out the book \"{0}\".", book.getTitle() );
      MailOptions launchOptions = new MailOptions( "user@mail.com", body );
      appLauncher.open( launchOptions );
    }
  }
View Full Code Here

public class PageAction extends AbstractAction {

  @Override
  public void execute() {
    AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
    TwitterOptions twitterOptions = new TwitterOptions( "Just created a Tabris HelloWorld App. Take a look..." );
    twitterOptions.setUrl( "http://developer.eclipsesource.com/tabris" );
    appLauncher.open( twitterOptions );
  }
View Full Code Here

    imageLabel.setImage( new Image( parent.getDisplay(), Page.class.getResourceAsStream( "/tabris.png" ) ) );
   
    // 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

Related Classes of com.eclipsesource.tabris.interaction.AppLauncher

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.