本文整理汇总了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);
}
}
}
示例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);
}
示例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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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));
}
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}