コード例 #1
0
  private void addComponents() {

    // Initialize the service remote procedure call
    if (componentFactorySvc == null) {
      componentFactorySvc = GWT.create(ComponentFactory.class);
    }

    AsyncCallback<Void> callback =
        new AsyncCallback<Void>() {
          public void onFailure(Throwable caught) {}

          public void onSuccess(Void result) {}
        };

    componentFactorySvc.pushComponents(
        components, expId, mediapath, ssLang, mtSrc, mtTrg, mtoSrc, mtoTrg, asrLang, wiz, callback);
  }
コード例 #2
0
  private void clearComponents() {

    // Initialize the service remote procedure call
    if (componentFactorySvc == null) {
      componentFactorySvc = GWT.create(ComponentFactory.class);
    }

    AsyncCallback<Void> callback =
        new AsyncCallback<Void>() {
          public void onFailure(Throwable caught) {}

          public void onSuccess(Void result) {
            addComponents();
          }
        };

    componentFactorySvc.clearComponents(callback);
  }