Package com.eclipsesource.tabris

Examples of com.eclipsesource.tabris.ClientStore


  @Test
  public void testHasClientStoreService() {
    TabrisClient client = new TabrisClientImpl();

    ClientStore store = client.getService( ClientStore.class );

    assertNotNull( store );
  }


  @Test
  public void testClientStoreIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    ClientStore store = client.getService( ClientStore.class );

    assertSame( store, client.getService( ClientStore.class ) );
  }

    Rectangle bounds = display.getBounds();
    trackingInfo.setScreenResolution( new Point( bounds.width, bounds.height ) );
  }

  private static String getClientId() {
    ClientStore clientStore = RWT.getClient().getService( ClientStore.class );
    if( clientStore != null ) {
      String id = clientStore.get( PROPERTY_ID );
      if( id == null ) {
        id = UUID.randomUUID().toString();
        clientStore.add( PROPERTY_ID, id );
      }
      return id;
    }
    return UUID.randomUUID().toString();
  }

TOP

Related Classes of com.eclipsesource.tabris.ClientStore

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.