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