Package org.eclipse.rap.rwt.remote

Examples of org.eclipse.rap.rwt.remote.RemoteObject


    assertEquals( JsonValue.valueOf( App.MAIL.toString() ), captor.getValue().get( "app" ) );
  }

  @Test
  public void testOpenCreatsCallOperationWithProperties() {
    RemoteObject remoteObject = environment.getRemoteObject();
    AppLauncher launcher = new AppLauncherImpl();
    LaunchOptions options = new MailOptions( "foo" );
    options.add( "foo", "bar" );
    options.add( "foo1", "bar1" );
View Full Code Here


    assertEquals( JsonValue.valueOf( "bar1" ), captor.getValue().get( "foo1" ) );
  }

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

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

    ArgumentCaptor<JsonObject> captor = ArgumentCaptor.forClass( JsonObject.class );
View Full Code Here

  }

  @Override
  public void renderInitialization( Widget widget ) throws IOException {
    RefreshComposite composite = ( RefreshComposite )widget;
    RemoteObject remoteObject = createRemoteObject( composite, TYPE_REFRESH_COMPOSITE );
    remoteObject.setHandler( new RefreshCompositeOperationHandler( composite ) );
    remoteObject.set( PROPERTY_PARENT, getId( composite.getParent() ) );
    remoteObject.set( PROPERTY_STYLE, createJsonArray( getStyles( composite, ALLOWED_STYLES ) ) );
    initializeListenToRefresh( composite, remoteObject );
    initializeMessage( remoteObject, composite.getMessage() );
  }
View Full Code Here

  void renderDone( RefreshComposite composite ) {
    RefreshAdapter adapter = composite.getAdapter( RefreshAdapter.class );
    boolean isDone = adapter.isDone();
    if( WidgetLCAUtil.hasChanged( composite, PROPERTY_DONE, Boolean.valueOf( isDone ) ) ) {
      RemoteObject remoteObject = RemoteObjectFactory.getRemoteObject( composite );
      remoteObject.call( METHOD_DONE, null );
      adapter.setDone( false );
    }
  }
View Full Code Here

  }

  @Override
  public void renderInitialization( Widget widget ) throws IOException {
    Video video = ( Video )widget;
    RemoteObject remoteObject = RemoteObjectFactory.createRemoteObject( video, TYPE_VIDEO );
    remoteObject.setHandler( new VideoOperationHandler( video ) );
    remoteObject.set( PROPERTY_PARENT, WidgetUtil.getId( video.getParent() ) );
    remoteObject.set( PROPERTY_URL, video.getURL().toString() );
  }
View Full Code Here

  }

  @Override
  public void renderInitialization( Widget widget ) throws IOException {
    delegate.renderInitialization( widget );
    RemoteObject remoteObject = RemoteObjectFactory.getRemoteObject( widget );
    remoteObject.setHandler( new ClientCanvasOperator( ( ClientCanvas )widget ) );
  }
View Full Code Here

  }

  @Override
  public void renderInitialization( Widget widget ) throws IOException {
    Video video = ( Video ) widget;
    RemoteObject remoteObject = RemoteObjectFactory.createRemoteObject( video, TYPE_VIDEO );
    remoteObject.set( PROPERTY_PARENT, WidgetUtil.getId( video.getParent() ) );
    remoteObject.set( PROPERTY_URL, video.getURL().toString() );
  }
View Full Code Here

  }

  @Override
  public void renderInitialization( Widget widget ) throws IOException {
    delegate.renderInitialization( widget );
    RemoteObject remoteObject = RemoteObjectFactory.getRemoteObject( widget );
    remoteObject.setHandler( new ClientCanvasOperator( ( ClientCanvas )widget ) );
  }
View Full Code Here

TOP

Related Classes of org.eclipse.rap.rwt.remote.RemoteObject

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.