本文整理汇总了Java中org.waveprotocol.wave.client.StageThree类的典型用法代码示例。如果您正苦于以下问题:Java StageThree类的具体用法?Java StageThree怎么用?Java StageThree使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StageThree类属于org.waveprotocol.wave.client包,在下文中一共展示了StageThree类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createStageThreeLoader
import org.waveprotocol.wave.client.StageThree; //导入依赖的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: onStageThreeLoaded
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
private void onStageThreeLoaded(StageThree x, Accessor<StageThree> whenReady) {
if (closed) {
// Stop the loading process.
return;
}
three = x;
if (newWave) {
// Init new wave.
// Install the new-wave flow.
ConversationBlip blip = one.getConversations().getRoot().getRootThread().getFirstBlip();
three.getEditActions().startEditing(blip);
}
wave = new WaveContext(one.getWave(), one.getConversations(),
one.getSupplement(), one.getReadMonitor(), one.getInboxStateMonitor(),
one.getDynamicRenderer());
//install title handler
windowTitleHandler = WindowTitleHandler.install(waveStore, waveFrame, searchPresenter);
waveStore.add(wave);
whenReady.use(x);
}
示例3: create
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
/**
* Creates the third stage.
*/
@Override
public void create(Accessor<StageThree> whenReady) {
if (Flags.get().enableUndercurrentEditing()) {
install();
}
whenReady.use(new StageThree() {
@Override
public Actions getEditActions() {
return StageThreeProvider.this.getEditActions();
}
@Override
public EditSession getEditSession() {
return StageThreeProvider.this.getEditSession();
}
@Override
public ScreenController getScreenController() {
return StageThreeProvider.this.getScreenController();
}
});
}
示例4: create
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
@Override
protected final void create(Accessor<StageThree> whenReady) {
install();
whenReady.use(new StageThree() {
@Override
public Actions getEditActions() {
throw new UnsupportedOperationException();
}
@Override
public EditSession getEditSession() {
throw new UnsupportedOperationException();
}
@Override
public ScreenController getScreenController() {
throw new UnsupportedOperationException();
}
});
}
示例5: createStageThreeLoader
import org.waveprotocol.wave.client.StageThree; //导入依赖的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;
}
});
}
示例6: onStageThreeLoaded
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
private void onStageThreeLoaded(StageThree x, Accessor<StageThree> whenReady) {
if (closed) {
// Stop the loading process.
return;
}
three = x;
if (isNewWave) {
initNewWave(x);
} else {
handleExistingWave(x);
}
wave = new WaveContext(
two.getWave(), two.getConversations(), two.getSupplement(), two.getReadMonitor());
waveStore.add(wave);
install();
whenReady.use(x);
}
示例7: closeAndOpenWave
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
/**
* Completion of the current wave, starting check for the end of the message processing
* and opening the new wave.
* @param openWaveData - data for opening the new wave
*/
private void closeAndOpenWave(final OpenWaveData openWaveData) {
final Command openWave = new Command() {
@Override
public void execute() {
openWave(openWaveData);
}
};
if (wave != null) {
StageThree three = wave.getStageThree();
if (three != null) {
final EditSession session = three.getEditSession();
if (session.isDraftModified()) {
final EditSession.Finisher finisher = session.getFinisher();
finisher.onWaveCompletion(new Command() {
@Override
public void execute() {
if (finisher.isExitAllowed()) {
session.leaveDraftMode(finisher.shouldDraftBeSaved());
closeWave(openWave);
} else {
searchPresenter.onRestoreSelection();
}
}
});
return;
}
}
}
closeWave(openWave);
}
示例8: initNewWave
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
private void initNewWave(StageThree three) {
// Do the new-wave flow.
ModelAsViewProvider views = two.getModelAsViewProvider();
BlipQueueRenderer blipQueue = two.getBlipQueue();
ConversationView wave = two.getConversations();
// Force rendering to finish.
blipQueue.flush();
BlipView blipUi = views.getBlipView(wave.getRoot().getRootThread().getFirstBlip());
three.getEditActions().startEditing(blipUi);
}
示例9: handleExistingWave
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
private void handleExistingWave(StageThree three) {
if (waveRef.hasDocumentId()) {
BlipQueueRenderer blipQueue = two.getBlipQueue();
blipQueue.flush();
selectAndFocusOnBlip(two.getReader(), two.getModelAsViewProvider(), two.getConversations(),
one.getFocusFrame(), waveRef);
}
}
示例10: getStageThree
import org.waveprotocol.wave.client.StageThree; //导入依赖的package包/类
public StageThree getStageThree() {
return three;
}
示例11: onModuleLoad
import org.waveprotocol.wave.client.StageThree; //导入依赖的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);
}
});
}