本文整理汇总了Java中org.waveprotocol.wave.client.wavepanel.view.dom.full.ReplyBoxViewBuilder类的典型用法代码示例。如果您正苦于以下问题:Java ReplyBoxViewBuilder类的具体用法?Java ReplyBoxViewBuilder怎么用?Java ReplyBoxViewBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ReplyBoxViewBuilder类属于org.waveprotocol.wave.client.wavepanel.view.dom.full包,在下文中一共展示了ReplyBoxViewBuilder类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CssProvider
import org.waveprotocol.wave.client.wavepanel.view.dom.full.ReplyBoxViewBuilder; //导入依赖的package包/类
/** Inject all members of the tuple, split by view section. */
public CssProvider(
BlipViewBuilder.Css blipCss,
CollapsibleBuilder.Css collapsibleCss,
ContinuationIndicatorViewBuilder.Css continuationIndicatorCss,
TopConversationViewBuilder.Css conversationCss,
ParticipantsViewBuilder.Css participantsCss,
ReplyBoxViewBuilder.Css replyBoxCss,
RootThreadViewBuilder.Css rootThreadCss,
TagsViewBuilder.Css tagsCss,
Dialog.Css dialogCss,
DynamicRendererImpl.Css renderCss) {
this.blipCss = blipCss;
this.collapsibleCss = collapsibleCss;
this.continuationIndicatorCss = continuationIndicatorCss;
this.conversationCss = conversationCss;
this.participantsCss = participantsCss;
this.replyBoxCss = replyBoxCss;
this.rootThreadCss = rootThreadCss;
this.tagsCss = tagsCss;
this.dialogCss = dialogCss;
this.renderCss = renderCss;
}
示例2: CssProvider
import org.waveprotocol.wave.client.wavepanel.view.dom.full.ReplyBoxViewBuilder; //导入依赖的package包/类
/** Inject all members of the tuple, split by view section. */
public CssProvider(BlipViewBuilder.Css blipCss,
CollapsibleBuilder.Css collapsibleCss,
ContinuationIndicatorViewBuilder.Css continuationIndicatorCss,
TopConversationViewBuilder.Css conversationCss,
ParticipantsViewBuilder.Css participantCss,
ReplyBoxViewBuilder.Css replyBoxCss,
RootThreadViewBuilder.Css rootThreadCss) {
this.blipCss = blipCss;
this.collapsibleCss = collapsibleCss;
this.continuationIndicatorCss = continuationIndicatorCss;
this.conversationCss = conversationCss;
this.participantCss = participantCss;
this.replyBoxCss = replyBoxCss;
this.rootThreadCss = rootThreadCss;
}
示例3: render
import org.waveprotocol.wave.client.wavepanel.view.dom.full.ReplyBoxViewBuilder; //导入依赖的package包/类
@Override
public UiBuilder render(final ConversationThread thread,
final IdentityMap<ConversationBlip, UiBuilder> blipUis) {
HtmlClosure blipsUi = new HtmlClosure() {
@Override
public void outputHtml(SafeHtmlBuilder out) {
for (ConversationBlip blip : thread.getBlips()) {
UiBuilder blipUi = blipUis.get(blip);
// Not all blips are rendered.
if (blipUi != null) {
blipUi.outputHtml(out);
}
}
}
};
String threadId = viewIdMapper.threadOf(thread);
String replyIndicatorId = viewIdMapper.replyIndicatorOf(thread);
UiBuilder builder = null;
if (thread.getConversation().getRootThread() == thread) {
ReplyBoxViewBuilder replyBoxBuilder =
ReplyBoxViewBuilder.create(replyIndicatorId);
builder = RootThreadViewBuilder.create(threadId, blipsUi, replyBoxBuilder);
} else {
ContinuationIndicatorViewBuilder indicatorBuilder = ContinuationIndicatorViewBuilder.create(
replyIndicatorId);
InlineThreadViewBuilder inlineBuilder =
InlineThreadViewBuilder.create(threadId, blipsUi, indicatorBuilder);
int read = readMonitor.getReadCount(thread);
int unread = readMonitor.getUnreadCount(thread);
inlineBuilder.setTotalBlipCount(read + unread);
inlineBuilder.setUnreadBlipCount(unread);
builder = inlineBuilder;
}
return builder;
}
示例4: getReplyBoxCss
import org.waveprotocol.wave.client.wavepanel.view.dom.full.ReplyBoxViewBuilder; //导入依赖的package包/类
public ReplyBoxViewBuilder.Css getReplyBoxCss() {
return replyBoxCss;
}