當前位置: 首頁>>代碼示例>>Java>>正文


Java BlipView.getMeta方法代碼示例

本文整理匯總了Java中org.waveprotocol.wave.client.wavepanel.view.BlipView.getMeta方法的典型用法代碼示例。如果您正苦於以下問題:Java BlipView.getMeta方法的具體用法?Java BlipView.getMeta怎麽用?Java BlipView.getMeta使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.waveprotocol.wave.client.wavepanel.view.BlipView的用法示例。


在下文中一共展示了BlipView.getMeta方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onAnchorAddedBefore

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
@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;
    if (replyUi != null) {
      defaultUi.detach(replyUi);
      inlineUi.attach(replyUi);
    }
  }
}
 
開發者ID:jorkey,項目名稱:Wiab.pro,代碼行數:19,代碼來源:ReplyManager.java

示例2: create

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
public static LiveProfileRenderer create(ProfileManager profiles,
    final ModelAsViewProvider views, final ShallowBlipRenderer blipRenderer) {
  final TimerService timer = SchedulerInstance.getLowPriorityTimer();
  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);
      }
    }
  };
  return new LiveProfileRenderer(profiles, views, contributorUpdater);
}
 
開發者ID:jorkey,項目名稱:Wiab.pro,代碼行數:18,代碼來源:LiveProfileRenderer.java

示例3: onAnchorRemoved

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
@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());
    AnchorView defaultUi = reply != null ? views.getDefaultAnchor(reply) : null;
    InlineThreadView replyUi = inlineUi.getThread();
    if (replyUi != null) {
      inlineUi.detach(replyUi);
      defaultUi.attach(replyUi);
    }

    dood.getAnchor().remove();
  }
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:20,代碼來源:ReplyManager.java

示例4: onBlipTimestampChanged

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
@Override
public void onBlipTimestampChanged(ObservableQuasiConversationBlip blip, long oldTimestamp,
    long newTimestamp) {
  BlipView blipUi = modelAsViewProvider.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    shallowBlipRenderer.renderTime(blip, metaUi);
  }
}
 
開發者ID:jorkey,項目名稱:Wiab.pro,代碼行數:10,代碼來源:DynamicDomRenderer.java

示例5: renderContributors

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
private void renderContributors(ObservableConversationBlip blip) {
  BlipView blipUi = modelAsViewProvider.getBlipView(blip);
  BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
  if (metaUi != null) {
    shallowBlipRenderer.renderContributors(blip, metaUi);
  }
}
 
開發者ID:jorkey,項目名稱:Wiab.pro,代碼行數:8,代碼來源:DynamicDomRenderer.java

示例6: onBlipTimestampChanged

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
@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);
  }
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:10,代碼來源:LiveConversationViewRenderer.java

示例7: onMaybeBlipReadChanged

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
@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));
  }
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:10,代碼來源:LiveSupplementRenderer.java

示例8: create

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
public static LiveProfileRenderer create(TimerService timer, ProfileManager profiles,
    final ModelAsViewProvider views, final ShallowBlipRenderer blipRenderer) {
  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);
          }
        }
      };
  return new LiveProfileRenderer(profiles, views, contributorUpdater);
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:16,代碼來源:LiveProfileRenderer.java

示例9: getPrevPost

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
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);
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:9,代碼來源:ViewTraverser.java

示例10: getBlipMetaView

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
@Override
public BlipMetaView getBlipMetaView(ConversationBlip blip) {
  BlipView blipUi = getBlipView(blip);
  return blipUi != null ? blipUi.getMeta() : null;
}
 
開發者ID:jorkey,項目名稱:Wiab.pro,代碼行數:6,代碼來源:FakeRenderer.java

示例11: getNext

import org.waveprotocol.wave.client.wavepanel.view.BlipView; //導入方法依賴的package包/類
public BlipView getNext(BlipView blip) {
  BlipMetaView meta = blip.getMeta();
  return meta != null ? getNextPre(blip, meta) : getNextPost(blip, meta);
}
 
開發者ID:apache,項目名稱:incubator-wave,代碼行數:5,代碼來源:ViewTraverser.java


注:本文中的org.waveprotocol.wave.client.wavepanel.view.BlipView.getMeta方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。