本文整理匯總了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);
}
});
}