Package com.eclipsesource.tabris.device

Examples of com.eclipsesource.tabris.device.ClientDevice


  public int createUI() {
    Display display = new Display();
    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();
View Full Code Here


      trackingInfo.setAppVersion( app.getVersion() );
    }
  }

  private static void setClientDeviceInfo( TrackingInfo trackingInfo ) {
    ClientDevice device = RWT.getClient().getService( ClientDevice.class );
    if( device != null ) {
      trackingInfo.setDeviceModel( device.getModel() );
      trackingInfo.setDeviceOsVersion( device.getOSVersion() );
      trackingInfo.setDeviceVendor( device.getVendor() );
      trackingInfo.setScaleFactor( device.getScaleFactor() );
      trackingInfo.setPlatform( device.getPlatform() );
      trackingInfo.setClientLocale( device.getLocale() );
      trackingInfo.setClientTimezoneOffset( device.getTimezoneOffset() );
    }
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.device.ClientDevice

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.