Package org.waveprotocol.wave.client.wavepanel.view.dom

Examples of org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider


    protected Actions createEditActions() {
      StageOne stageOne = stageTwo.getStageOne();
      WavePanelImpl panel = stageOne.getWavePanel();
      FocusFramePresenter focus = stageOne.getFocusFrame();
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      WaveDocuments<? extends InteractiveDocument> docs = stageTwo.getDocumentRegistry();
      BlipQueueRenderer blipQueue = stageTwo.getBlipQueue();
      EditSession edit = getEditSession();
      return ActionsImpl.create(views, docs, blipQueue, focus, edit);
    }
View Full Code Here


    protected EditSession createEditSession() {
      StageOne stageOne = stageTwo.getStageOne();
      WavePanelImpl panel = stageOne.getWavePanel();
      FocusFramePresenter focus = stageOne.getFocusFrame();
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      DocumentRegistry<? extends InteractiveDocument> documents = stageTwo.getDocumentRegistry();
      String address = stageTwo.getSignedInUser().getAddress();
      TimerService clock = SchedulerInstance.getLowPriorityTimer();
      String sessionId = stageTwo.getSessionId();
View Full Code Here

      return EditToolbar.create(getStageTwo().getSignedInUser(), stageTwo.getIdGenerator(),
          stageTwo.getWave().getWaveId());
    }

    protected ViewToolbar createViewToolbar() {
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      ConversationView wave = stageTwo.getConversations();
      return ViewToolbar.create(stageTwo.getStageOne().getFocusFrame(), views, wave,
          stageTwo.getReader());
    }
View Full Code Here

      // Eagerly install some features.
      WavePanelImpl panel = stageTwo.getStageOne().getWavePanel();
      FocusFramePresenter focus = stageTwo.getStageOne().getFocusFrame();
      ParticipantId user = stageTwo.getSignedInUser();
      ModelAsViewProvider models = stageTwo.getModelAsViewProvider();
      ProfileManager profiles = stageTwo.getProfileManager();

      MenuMessages menuMessages = GWT.create(MenuMessages.class);
      ParticipantMessages participantMessages = GWT.create(ParticipantMessages.class);
View Full Code Here

    // Create a wave
    wave = createWave();

    // Render it.
    FakeRenderer renderer = FakeRenderer.create(wave);
    ModelAsViewProvider views = renderer;
    rendering = renderer.render(wave);

    // Keep it live.
    ReplyManager replyHandler = new ReplyManager(views);
    timer = new FakeTimerService();
View Full Code Here

    whenReady.use(x);
  }

  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);
  }
View Full Code Here

          }
        };
      }

      private void maybeNewWaveSetup(StageTwo two, StageThree three) {
        ModelAsViewProvider views = two.getModelAsViewProvider();
        Conversation rootConv = two.getConversations().getRoot();

        if (looksLikeANewWave(rootConv)) {
          BlipView blipUi = views.getBlipView(rootConv.getRootThread().getFirstBlip());

          // Needed because startEditing must have an editor already rendered.
          two.getBlipQueue().flush();
          three.getEditActions().startEditing(blipUi);
        }
View Full Code Here

    protected Actions createEditActions() {
      StageOne stageOne = stageTwo.getStageOne();
      WavePanelImpl panel = stageOne.getWavePanel();
      FocusFramePresenter focus = stageOne.getFocusFrame();
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      WaveDocuments<? extends InteractiveDocument> docs = stageTwo.getDocumentRegistry();
      BlipQueueRenderer blipQueue = stageTwo.getBlipQueue();
      EditSession edit = getEditSession();
      return ActionsImpl.create(views, docs, blipQueue, focus, edit);
    }
View Full Code Here

    protected EditSession createEditSession() {
      StageOne stageOne = stageTwo.getStageOne();
      WavePanelImpl panel = stageOne.getWavePanel();
      FocusFramePresenter focus = stageOne.getFocusFrame();
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      DocumentRegistry<? extends InteractiveDocument> documents = stageTwo.getDocumentRegistry();
      String address = stageTwo.getSignedInUser().getAddress();
      TimerService clock = SchedulerInstance.getLowPriorityTimer();
      String sessionId = stageTwo.getSessionId();
View Full Code Here

      return EditToolbar.create(getStageTwo().getSignedInUser(), stageTwo.getIdGenerator(),
          stageTwo.getWave().getWaveId());
    }

    protected ViewToolbar createViewToolbar() {
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      ConversationView wave = stageTwo.getConversations();
      return ViewToolbar.create(stageTwo.getStageOne().getFocusFrame(), views, wave,
          stageTwo.getReader());
    }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.