Examples of InlineThreadView


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

      int anchoredDefaults = 0// empty default anchors.
      a = blip.getDefaultAnchorAfter(null);
      for (ThreadBuilder threadBuilder : unanchored) {
        assertNotNull(a);
        InlineThreadView thread = a.getThread();
        while (thread == null) {
          a = blip.getDefaultAnchorAfter(a);
          thread = a.getThread();
          assertNotNull(a);
          anchoredDefaults++;
View Full Code Here

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

      metaUi.insertInlineAnchorBefore(ref != null ? ref.getAnchor() : null, inlineUi);

      // Move reply if it exists.
      ConversationThread reply = blip.getReplyThread(dood.getId());
      AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
      InlineThreadView replyUi = defaultUi != null ? defaultUi.getThread() : null;
      if (replyUi != null) {
        defaultUi.detach(replyUi);
        inlineUi.attach(replyUi);
      }
    }
View Full Code Here

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

      AnchorView inlineUi = dood.getAnchor();

      // Move reply if there is one.
      ConversationThread reply = blip.getReplyThread(dood.getId());
      AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
      InlineThreadView replyUi = inlineUi.getThread();
      if (replyUi != null) {
        inlineUi.detach(replyUi);
        defaultUi.attach(replyUi);
      }
View Full Code Here

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

    AnchorView refDefault = ref != null ? views.getDefaultAnchor(ref) : null;
    Preconditions.checkArgument(ref == null || refDefault != null, "ref is not rendered");

    // Render thread in default anchor (and move to inline if there is one).
    AnchorView defaultUi = blipUi.insertDefaultAnchorAfter(refDefault, thread);
    InlineThreadView threadUi = defaultUi.getThread();
    AnchorView inlineUi = views.getInlineAnchor(thread);
    if (inlineUi != null) {
      defaultUi.detach(threadUi);
      inlineUi.attach(threadUi);
    }
View Full Code Here

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

    StringSequence inlineLocators = metaDom.getInlineLocators();
    String inlineId = inlineLocators.getFirst();
    while (inlineId != null) {
      AnchorView inlineUi = views.asAnchor(Document.get().getElementById(inlineId));
      InlineThreadView threadUi = inlineUi.getThread();
      if (threadUi != null) {
        // Move to default location.
        String defaultId = ViewIdMapper.defaultOfInlineAnchor(inlineId);
        AnchorView defaultUi = views.asAnchor(Document.get().getElementById(defaultId));
        inlineUi.detach(threadUi);
View Full Code Here

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

    AnchorView first = meta.getInlineAnchorAfter(null);
    return first != null ? getNextPre(meta, first) : getNextPost(parent, meta);
  }

  private BlipView getNextPre(BlipMetaView parent, AnchorView anchor) {
    InlineThreadView contents = anchor.getThread();
    return contents != null ? getNextPre(anchor, contents) : getNextPost(parent, anchor);
  }
View Full Code Here

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

    BlipView first = skip(thread) ? null : thread.getBlipAfter(null);
    return first != null ? getNextPre(thread, first) : getNextPost(parent, thread);
  }

  private BlipView getNextPre(BlipView parent, AnchorView anchor) {
    InlineThreadView contents = anchor.getThread();
    return contents != null ? getNextPre(anchor, contents) : getNextPost(parent, anchor);
  }
View Full Code Here

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

    AnchorView last = meta.getInlineAnchorBefore(null);
    return last != null ? getPrevPre(meta, last) : getPrevPost(parent, meta);
  }

  private BlipView getPrevPre(BlipView parent, AnchorView anchor) {
    InlineThreadView contents = anchor.getThread();
    return contents != null ? getPrevPre(anchor, contents)
        : getPrevPost(anchor.getParent(), anchor);
  }
View Full Code Here

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

    RootThreadView root = skip(conversation) ? null : conversation.getRootThread();
    return root != null ? getPrevPre(conversation, root) : getPrevPost(conversation, root);
  }

  private BlipView getPrevPre(BlipMetaView parent, AnchorView anchor) {
    InlineThreadView contents = anchor.getThread();
    return contents != null ? getPrevPre(anchor, contents)
        : getPrevPost(anchor.getParent(), anchor);
  }
View Full Code Here

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

      // inline threads are ignored for now.
    }

    @Override
    public void onThreadDeleted(ObservableConversationThread thread) {
      InlineThreadView threadView = views.getInlineThreadView(thread);
      if (threadView != null) {
        threadView.remove();
      }
    }
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.