本文整理汇总了Java中org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer类的典型用法代码示例。如果您正苦于以下问题:Java DomRenderer类的具体用法?Java DomRenderer怎么用?Java DomRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DomRenderer类属于org.waveprotocol.wave.client.wavepanel.view.dom.full包,在下文中一共展示了DomRenderer类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
protected DomRenderer createRenderer() {
final BlipQueueRenderer pager = getBlipQueue();
DocRefRenderer docRenderer = new DocRefRenderer() {
@Override
public UiBuilder render(
ConversationBlip blip, IdentityMap<ConversationThread, UiBuilder> replies) {
// Documents are rendered blank, and filled in later when
// they get paged in.
pager.add(blip);
return DocRefRenderer.EMPTY.render(blip, replies);
}
};
RenderingRules<UiBuilder> rules = new FullDomRenderer(
getBlipDetailer(), docRenderer, getProfileManager(),
getViewIdMapper(), createViewFactories(), getThreadReadStateMonitor());
return new HtmlDomRenderer(ReductionBasedRenderer.of(rules, getConversations()));
}
示例2: getDomRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
private DomRenderer getDomRenderer() {
if (domRenderer == null) {
domRenderer = createDomRenderer();
}
return domRenderer;
}
示例3: createDomRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
private DomRenderer createDomRenderer() {
ReductionBasedRenderer reductionBasedRenderer = ReductionBasedRenderer.of(getRenderingRules(),
getQuasiConversationView());
return HtmlDomRenderer.create(reductionBasedRenderer);
}
示例4: setRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
@Override
public void setRenderer(DomRenderer renderer) {
Preconditions.checkArgument(renderer != null);
Preconditions.checkState(this.domRenderer == null);
this.domRenderer = renderer;
}
示例5: getRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
/** @return the domRenderer for creating new sections of the DOM. */
private DomRenderer getRenderer() {
Preconditions.checkState(domRenderer != null, "Renderer not ready");
return domRenderer;
}
示例6: getRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
protected final DomRenderer getRenderer() {
return renderer == null ? renderer = createRenderer() : renderer;
}
示例7: setRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
@Override
public void setRenderer(DomRenderer renderer) {
Preconditions.checkArgument(renderer != null);
Preconditions.checkState(this.renderer == null);
this.renderer = renderer;
}
示例8: getRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
/** @return the renderer for creating new sections of the DOM. */
private DomRenderer getRenderer() {
Preconditions.checkState(renderer != null, "Renderer not ready");
return renderer;
}
示例9: setRenderer
import org.waveprotocol.wave.client.wavepanel.view.dom.full.DomRenderer; //导入依赖的package包/类
/**
* Upgrades the views managed by this handler with the capability to add new
* views by rendering model objects. The renderer can only be set once.
*
* @param renderer renderer to use for rendering model objects
*/
void setRenderer(DomRenderer renderer);