本文整理汇总了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);
}
});
}
});
}
示例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();
}
});
}
示例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;
}
});
}
示例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);
}
});
}
示例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;
}
示例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.
}
});
}
示例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));
}
示例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);
}
});
}
示例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.
}
示例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));
}