当前位置: 首页>>代码示例>>Java>>正文


Java StageTwo类代码示例

本文整理汇总了Java中org.waveprotocol.wave.client.StageTwo的典型用法代码示例。如果您正苦于以下问题:Java StageTwo类的具体用法?Java StageTwo怎么用?Java StageTwo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


StageTwo类属于org.waveprotocol.wave.client包,在下文中一共展示了StageTwo类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createStageThreeLoader

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
@Override
protected AsyncHolder<StageThree> createStageThreeLoader(final StageTwo two) {
  return haltIfClosed(threeProvider = new StageThreeProvider(this.two = two, Session.get().getIdSeed(),
    ParticipantId.ofUnsafe(Session.get().getAddress()), waveHolder, localDomain, idGenerator, profileManager) {

    @Override
    public void create(final Accessor<StageThree> whenReady) {
      // Prepend an init wave flow onto the stage continuation.
      super.create(new Accessor<StageThree>() {
        @Override
        public void use(StageThree x) {
          onStageThreeLoaded(x, whenReady);
        }
      });
    }
  });
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:18,代码来源:StagesProvider.java

示例2: create

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
@Override
protected final void create(Accessor<StageTwo> whenReady) {
  install();
  whenReady.use(new StageTwo() {

    @Override
    public StageOne getStageOne() {
      throw new UnsupportedOperationException();
    }

    @Override
    public MuxConnector getConnector() {
      throw new UnsupportedOperationException();
    }
  });
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:17,代码来源:StageTwoTestProvider.java

示例3: createStageThreeLoader

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
@Override
protected AsyncHolder<StageThree> createStageThreeLoader(final StageTwo two) {
  return haltIfClosed(new StageThree.DefaultProvider(this.two = two) {
    @Override
    protected void create(final Accessor<StageThree> whenReady) {
      // Prepend an init wave flow onto the stage continuation.
      super.create(new Accessor<StageThree>() {
        @Override
        public void use(StageThree x) {
          onStageThreeLoaded(x, whenReady);
        }
      });
    }

    @Override
    protected String getLocalDomain() {
      return localDomain;
    }
  });
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:21,代码来源:StagesProvider.java

示例4: create

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
/**
 * Creates the second stage.
 * Opens wavelet channels.
 *
 * @param whenReady reference to the stage two if it's created, or null, if it fails to be created
 */
@Override
protected void create(final AsyncHolder.Accessor<StageTwo> whenReady) {
  getMuxConnector().connect(new MuxConnector.Listener() {

    @Override
    public void onConnected() {
      if (!connected) { // Don't call on reconnecting
        connected = true;
        // Appends listeners to wave view.
        whenReady.use(new StageTwo() {

          @Override
          public StageOne getStageOne() {
            return stageOne;
          }

          @Override
          public MuxConnector getConnector() {
            return StageTwoProvider.this.getMuxConnector();
          }
        });
      }
    }

    @Override
    public void onFailed(ReturnStatus detail) {
      if (!connected) {
        whenReady.use(null);
      }
      showStreamError(detail);
    }
  });
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:40,代码来源:StageTwoProvider.java

示例5: StageThreeProvider

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
public StageThreeProvider(StageTwo stageTwo, String sessionId, ParticipantId signedInUser,
    ImplPanel waveHolder, String localDomain, IdGenerator idGenerator, ProfileManager profileManager) {
  this.stageOne = stageTwo.getStageOne();
  this.stageTwo = stageTwo;
  this.waveHolder = waveHolder;
  this.localDomain = localDomain;
  this.sessionId = sessionId;
  this.signedInUser = signedInUser;
  this.idGenerator = idGenerator;
  this.profileManager = profileManager;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:12,代码来源:StageThreeProvider.java

示例6: create

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
@Override
protected void create(final AsyncHolder.Accessor<StageTwo> whenReady) {
  this.whenReady = whenReady;
  super.create(new AsyncHolder.Accessor<StageTwo>() {
    @Override
    public void use(StageTwo x) {
      // Delay progression until rendering is ready.
    }
  });
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:11,代码来源:StageTwoProvider.java

示例7: createStageTwoLoader

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
@Override
protected AsyncHolder<StageTwo> createStageTwoLoader(StageOne one) {
  return haltIfClosed(twoProvider = new StageTwoProvider(this.one = one, webSocket, waveRef, errorPopup, errorMessages));
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:5,代码来源:StagesProvider.java

示例8: onModuleLoad

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
/**
 * Runs the harness script.
 */
@Override
public void onModuleLoad() {
  if (loaded) {
    return;
  }
  loaded = true;

  final Timeline timeline = new Timeline();
  new Stages() {

    @Override
    protected AsyncHolder<StageZero> createStageZeroLoader() {
      return new StageZeroTestProvider();
    }

    @Override
    protected AsyncHolder<StageOne> createStageOneLoader(StageZero zero) {
      return new StageOneTestProvider(zero);
    }

    @Override
    protected AsyncHolder<StageTwo> createStageTwoLoader(StageOne one) {
      return new StageTwoTestProvider(one);
    }

    @Override
    protected AsyncHolder<StageThree> createStageThreeLoader(StageTwo two) {
      Flags.resetWithSourceForTesting(OverridingTypedSource.of(new NullTypedSource())
          .withBoolean(FlagConstants.ENABLE_UNDERCURRENT_EDITING, true)
          .build());

      // Only for test additional color pickers
      SampleCustomColorPicker.create();

      return new StageThreeTestProvider(two);
    }
  }.load(new Command() {
    @Override
    public void execute() {
      showInfo(timeline);
    }
  });
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:47,代码来源:UndercurrentHarness.java

示例9: StageThreeTestProvider

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
public StageThreeTestProvider(StageTwo previous) {
  // Nothing in stage one depends on anything in stage zero currently, but
  // the dependency is wired up so that it is simple to add such
  // dependencies should they be necessary in the future.
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:StageThreeTestProvider.java

示例10: createStageTwoLoader

import org.waveprotocol.wave.client.StageTwo; //导入依赖的package包/类
@Override
protected AsyncHolder<StageTwo> createStageTwoLoader(StageOne one) {
  return haltIfClosed(new StageTwoProvider(this.one = one, waveRef, channel, isNewWave,
      idGenerator, profiles, new SavedStateIndicator(unsavedIndicatorElement), participants));
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:6,代码来源:StagesProvider.java


注:本文中的org.waveprotocol.wave.client.StageTwo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。