Examples of BlipView


Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

        blipBuilder.populate(blip, threadUi.insertBlipBefore(null, blip));
      }
    }

    void verify(Queue<BlipView> blips, ThreadView thread) {
      BlipView blip = thread.getBlipAfter(null);
      for (BlipBuilder blipBuilder : blipBuilders) {
        assertNotNull(blip);
        blipBuilder.verify(blips, blip);
        blip = thread.getBlipAfter(blip);
      }
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

    target.install();

    Editor e = mock(Editor.class);
    MockDoc doc = mock(MockDoc.class);
    ConversationBlip blip = mock(ConversationBlip.class);
    BlipView blipUi = mock(BlipView.class);
    when(models.getBlip(blipUi)).thenReturn(blip);
    when(documents.get(blip)).thenReturn(doc);

    target.onSessionStart(e, blipUi);
    target.onSessionEnd(e, blipUi);
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

    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

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

   */
  private static void selectAndFocusOnBlip(Reader reader, ModelAsViewProvider views,
      ConversationView wave, FocusFramePresenter focusFrame, WaveRef waveRef) {
    FocusBlipSelector blipSelector =
        FocusBlipSelector.create(wave, views, reader, new ViewTraverser());
    BlipView blipUi = blipSelector.selectBlipByWaveRef(waveRef);
    // Focus on the selected blip.
    if (blipUi != null) {
      focusFrame.focus(blipUi);
    }
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

    this.views = views;
  }

  @Override
  public void onAnchorAddedBefore(ConversationBlip blip, ReplyDoodad ref, ReplyDoodad dood) {
    BlipView blipUi = views.getBlipView(blip);
    BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
    if (metaUi != null) {
      AnchorView inlineUi = dood.getAnchor();
      metaUi.insertInlineAnchorBefore(ref != null ? ref.getAnchor() : null, inlineUi);

      // Move reply if it exists.
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

    }
  }

  @Override
  public void onAnchorRemoved(ConversationBlip blip, ReplyDoodad dood) {
    BlipView blipUi = views.getBlipView(blip);
    BlipMetaView metaUi = blip != null ? blipUi.getMeta() : null;
    if (metaUi != null) {
      AnchorView inlineUi = dood.getAnchor();

      // Move reply if there is one.
      ConversationThread reply = blip.getReplyThread(dood.getId());
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

    new ToolbarButtonViewBuilder().setText(messages.nextUnread()).applyTo(
        group.addClickButton(), new ToolbarClickButton.Listener() {
          @Override
          public void onClicked() {
            BlipView focusedBlip = focusFrame.getFocusedBlip();
            if (focusedBlip == null) {
              focusedBlip = blipSelector.getOrFindRootBlip();
              boolean isRead = reader.isRead(focusedBlip);
              focusFrame.focus(focusedBlip);
              if (isRead) {
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

  //
  // Next Pre.
  //

  private BlipView getNextPre(ConversationView parent, RootThreadView thread) {
    BlipView first = thread.getBlipAfter(null);
    return first != null ? getNextPre(thread, first) : getNextPost(parent, thread);
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

    InlineThreadView contents = anchor.getThread();
    return contents != null ? getNextPre(anchor, contents) : getNextPost(parent, anchor);
  }

  private BlipView getNextPre(AnchorView parent, InlineThreadView thread) {
    BlipView first = skip(thread) ? null : thread.getBlipAfter(null);
    return first != null ? getNextPre(thread, first) : getNextPost(parent, thread);
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.BlipView

  private BlipView getNextPost(TopConversationView parent, RootThreadView child) {
    return null;
  }

  private BlipView getNextPost(ThreadView parent, BlipView child) {
    BlipView next = parent.getBlipAfter(child);
    return next != null ? getNextPre(parent, next) : getNextPost(parent.getParent(), parent);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.