Examples of BlipView


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

  //
  // Prev Pre.
  //

  private BlipView getPrevPre(ConversationView parent, RootThreadView thread) {
    BlipView last = thread.getBlipBefore(null);
    return last != null ? getPrevPre(thread, last) : getPrevPost(parent, thread);
  }
View Full Code Here

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

    InlineConversationView last = blip.getConversationBefore(null);
    return last != null ? getPrevPre(blip, last) : getPrevPost(blip, (InlineConversationView) null);
  }

  private BlipView getPrevPre(AnchorView parent, InlineThreadView thread) {
    BlipView last = skip(thread) ? null : thread.getBlipBefore(null);
    return last != null ? getPrevPre(thread, last) : getPrevPost(parent, thread);
  }
View Full Code Here

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

    AnchorView prev = parent.getInlineAnchorBefore(child);
    return prev != null ? getPrevPre(parent, prev) : getPrevPost(parent.getParent(), parent);
  }

  private BlipView getPrevPost(ThreadView parent, BlipView child) {
    BlipView prev = parent.getBlipBefore(child);
    return prev != null ? getPrevPre(parent, prev) : getPrevPost(parent.getParent(), parent);
  }
View Full Code Here

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

    supplement.removeListener(this);
  }

  @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

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

  /**
   * Moves the focus frame to the previous blip in the vertical ordering, if
   * there is one. If there is no previous blip, this method does nothing.
   */
  public void moveUp() {
    BlipView prev = blip != null ? traverser.getPrevious(blip) : null;
    if (prev != null) {
      focus(prev, true);
    }
  }
View Full Code Here

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

  /**
   * Moves the focus frame to the next blip in the vertical ordering, if there
   * is one. If there is no next blip, this method does nothing.
   */
  public void moveDown() {
    BlipView next = blip != null ? traverser.getNext(blip) : null;
    if (next != null) {
      focus(next, true);
    }
  }
View Full Code Here

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

   * Sets the blip that has the focus frame. If {@code blip} is null, the focus
   * frame is removed.
   */
  private void focus(BlipView blip, boolean scroll) {
    if (!ValueUtils.equal(this.blip, blip)) {
      BlipView oldUi = this.blip;
      BlipView newUi = blip;

      // Scroll first, before layout gets invalidated.
      if (newUi != null && scroll) {
        scroller.moveTo(newUi);
      }
View Full Code Here

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

   */
  public void focusNext() {
    // Real condition is that blip != null implies scroller != null.
    Preconditions.checkState(blip == null || scroller != null);
    if (blip != null && order != null) {
      BlipView next = order.getNext(blip);
      if (next != null) {
        focus(next);
      }
      else {
        focusPrevious();
View Full Code Here

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

   */
  public void focusPrevious() {
    // Real condition is that blip != null implies scroller != null.
    Preconditions.checkState(blip == null || scroller != null);
    if (blip != null && order != null) {
      BlipView next = order.getPrevious(blip);
      if (next != null) {
        focus(next);
      }
    }
  }
View Full Code Here

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

  // Next/Previous blips based on read/unread state.
  //

  @Override
  public BlipView getNext(BlipView start) {
    BlipView blipUi = traverser.getNext(start);
    while (blipUi != null && isRead(blipUi)) {
      blipUi = traverser.getNext(blipUi);
    }
    return blipUi;
  }
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.