本文整理匯總了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;
}