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

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


    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

  // conversations infeasible.
  //

  @Override
  public void onConversationAdded(ObservableConversation conversation) {
    BlipView container = viewOf(conversation.getAnchor().getBlip());
    if (container != null) {
      ConversationView conversationUi = container.insertConversationBefore(null, conversation);
    }

    observe(conversation);
  }
View Full Code Here

  /**
   * 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

  /**
   * 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

   * 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

   */
  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

   */
  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

    }

    @Override
    public void onThreadAdded(ObservableConversationThread thread) {
      ObservableConversationBlip parentBlip = thread.getParentBlip();
      BlipView blipView = views.getBlipView(parentBlip);

      if (blipView != null) {
        ConversationThread next = findBefore(thread, parentBlip.getReplyThreads());
        replyHandler.presentAfter(blipView, next, thread);
      } else {
View Full Code Here

    public void onBlipAdded(ObservableConversationBlip blip) {
      ConversationThread parentThread = blip.getThread();
      ThreadView threadView = viewOf(parentThread);
      if (threadView != null) {
        ConversationBlip ref = findBefore(blip, parentThread.getBlips());
        BlipView refView = viewOf(ref);

        // Render the new blip.
        threadView.insertBlipAfter(refView, blip);
        bubbleBlipCountUpdate(blip);
      } else {
View Full Code Here

TOP

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

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.