Package org.waveprotocol.wave.model.conversation

Examples of org.waveprotocol.wave.model.conversation.ConversationView


    };
    WaveViewImpl<?> wave = WaveViewImpl.create(
        waveletFactory, waveData.getWaveId(), gen, creator, WaveletConfigurator.ADD_CREATOR);

    // Build a conversation with a root blip.
    ConversationView v = WaveBasedConversationView.create(wave, gen);
    Conversation c = v.createRoot();
    ConversationThread thread = c.getRootThread();
    thread.appendBlip();

    log.info("initial ops=" + ops);
View Full Code Here


          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

      WaveViewImpl<?> wave = WaveViewImpl.create(
          waveletFactory, waveData.getWaveId(), gen, sampleAuthor, WaveletConfigurator.ADD_CREATOR);

      // Build a conversation in that wave.
      ConversationView v = WaveBasedConversationView.create(wave, gen);
      Conversation c = v.createRoot();
      ConversationThread root = c.getRootThread();
      sampleReply(root.appendBlip());
      write(root.appendBlip());
      write(root.appendBlip());
      write(root.appendBlip());
View Full Code Here

   *         invalid.
   */
  public static SupplementedWave buildSupplement(OperationRequest operation,
      OperationContext context, ParticipantId participant) throws InvalidRequestException {
    OpBasedWavelet wavelet = context.openWavelet(operation, participant);
    ConversationView conversationView = context.getConversationUtil().buildConversation(wavelet);

    // TODO (Yuri Z.) Find a way to obtain an instance of IdGenerator and use it
    // to create udwId.
    WaveletId udwId = buildUserDataWaveletId(participant);
    String waveIdStr = OperationUtil.getRequiredParameter(operation, ParamsProperty.WAVE_ID);
View Full Code Here

  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

TOP

Related Classes of org.waveprotocol.wave.model.conversation.ConversationView

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.