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

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


     }
    }

    void verify(Queue<BlipView> blips, BlipView blip) {
      assertEquals(blips.poll(), blip);
      BlipMetaView meta = blip.getMeta();

      AnchorView a = meta.getInlineAnchorAfter(null);
      for (ThreadBuilder threadBuilder : anchored) {
        assertNotNull(a);
        threadBuilder.verify(blips, a.getThread());
        a = meta.getInlineAnchorAfter(a);
      }
      assertNull(a);

      int anchoredDefaults = 0// empty default anchors.
      a = blip.getDefaultAnchorAfter(null);
View Full Code Here


  }

  @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.
      ConversationThread reply = blip.getReplyThread(dood.getId());
      AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
      InlineThreadView replyUi = defaultUi != null ? defaultUi.getThread() : null;
View Full Code Here

  }

  @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

  public BlipView getFirst(ConversationView v) {
    return getNextPre(v, v.getRootThread());
  }

  public BlipView getNext(BlipView blip) {
    BlipMetaView meta = blip.getMeta();
    return meta != null ? getNextPre(blip, meta) : getNextPost(blip, meta);
  }
View Full Code Here

    return null;
  }

private BlipView getPrevPost(BlipView parent, AnchorView child) {
    AnchorView prev = parent.getDefaultAnchorBefore(child);
    BlipMetaView meta;
    return prev != null ? getPrevPre(parent, prev) // \u2620
        : ((meta = parent.getMeta()) != null) // \u2620
            ? getPrevPre(parent, meta) // \u2620
            : getPrevPost(parent, meta);
  }
View Full Code Here

  }

  @Override
  public void onMaybeBlipReadChanged(ObservableConversationBlip blip) {
    BlipView blipUi = views.getBlipView(blip);
    BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;

    if (metaUi != null) {
      metaUi.setRead(!supplement.isUnread(blip));
    }
  }
View Full Code Here

    @Override
    public void onBlipTimestampChanged(
        ObservableConversationBlip blip, long oldTimestamp, long newTimestamp) {
      BlipView blipUi = views.getBlipView(blip);
      BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
      if (metaUi != null) {
        blipRenderer.renderTime(blip, metaUi);
      }
    }
View Full Code Here

    QueueProcessor<ConversationBlip> contributorUpdater =
        new QueueProcessor<ConversationBlip>(timer) {
          @Override
          public void process(ConversationBlip blip) {
            BlipView blipUi = blip != null ? views.getBlipView(blip) : null;
            BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
            if (metaUi != null) {
              blipRenderer.renderContributors(blip, metaUi);
            }
          }
        };
View Full Code Here

    QueueProcessor<ConversationBlip> contributorUpdater =
        new QueueProcessor<ConversationBlip>(timer) {
          @Override
          public void process(ConversationBlip blip) {
            BlipView blipUi = blip != null ? views.getBlipView(blip) : null;
            BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
            if (metaUi != null) {
              blipRenderer.renderContributors(blip, metaUi);
            }
          }
        };
View Full Code Here

  public BlipView getFirst(ConversationView v) {
    return getNextPre(v, v.getRootThread());
  }

  public BlipView getNext(BlipView blip) {
    BlipMetaView meta = blip.getMeta();
    return meta != null ? getNextPre(blip, meta) : getNextPost(blip, meta);
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.wavepanel.view.BlipMetaView

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.