本文整理汇总了Java中org.waveprotocol.wave.client.editor.content.Registries.getElementHandlerRegistry方法的典型用法代码示例。如果您正苦于以下问题:Java Registries.getElementHandlerRegistry方法的具体用法?Java Registries.getElementHandlerRegistry怎么用?Java Registries.getElementHandlerRegistry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.waveprotocol.wave.client.editor.content.Registries
的用法示例。
在下文中一共展示了Registries.getElementHandlerRegistry方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: installer
import org.waveprotocol.wave.client.editor.content.Registries; //导入方法依赖的package包/类
public static GlobalInstaller installer() {
return new GlobalInstaller() {
@Override
public void install(Registries r) {
ElementHandlerRegistry handlers = r.getElementHandlerRegistry();
RenderingMutationHandler multiHandler = TemplateNodeMutationHandler.create();
LineRendering.registerContainer(PART_TAG, handlers);
handlers.registerRenderingMutationHandler(TEMPLATE_TAG, multiHandler);
handlers.registerMutationHandler(NAMEVALUEPAIR_TAG, new NameValuePairNodeMutationHandler());
handlers.registerEventHandler(TEMPLATE_TAG, ChunkyElementHandler.INSTANCE);
handlers.registerEventHandler(PART_TAG, LineRendering.DEFAULT_PARAGRAPH_EVENT_HANDLER);
}
};
}
示例2: registerHandlers
import org.waveprotocol.wave.client.editor.content.Registries; //导入方法依赖的package包/类
private static void registerHandlers(Registries registries) {
AnnotationRegistry annotationRegistry = registries.getAnnotationHandlerRegistry();
PainterRegistry paintRegistry = registries.getPaintRegistry();
ElementHandlerRegistry elementHandlerRegistry = registries.getElementHandlerRegistry();
ImageThumbnail.register(elementHandlerRegistry,
new FakeAttachmentsManager(), null);
StyleAnnotationHandler.register(registries);
DiffAnnotationHandler.register(annotationRegistry, paintRegistry);
DiffDeleteRenderer.register(elementHandlerRegistry);
LinkAnnotationHandler.register(registries, new LinkAttributeAugmenter() {
@Override
public Map<String, String> augment(Map<String, Object> annotations, boolean isEditing,
Map<String, String> current) {
return current;
}
});
LineRendering.registerContainer(Blips.BODY_TAGNAME, elementHandlerRegistry);
FormDoodads.register(Editor.ROOT_HANDLER_REGISTRY);
// SpellDocument testSpellDoc = SpellDebugHelper.createTestSpellDocument(
// EditorStaticDeps.logger);
// SpellAnnotationHandler.register(registries,
// SpellySettings.DEFAULT, testSpellDoc);
// SpellSuggestion.register(registries.getElementHandlerRegistry(), testSpellDoc);
}
示例3: registerHandlers
import org.waveprotocol.wave.client.editor.content.Registries; //导入方法依赖的package包/类
private static void registerHandlers(Registries registries) {
AnnotationRegistry annotationRegistry = registries.getAnnotationHandlerRegistry();
PainterRegistry paintRegistry = registries.getPaintRegistry();
ElementHandlerRegistry elementHandlerRegistry = registries.getElementHandlerRegistry();
LineContainers.setTopLevelContainerTagname(Blips.BODY_TAGNAME);
LineRendering.registerContainer(Blips.BODY_TAGNAME, elementHandlerRegistry);
TestInlineDoodad.register(elementHandlerRegistry);
StyleAnnotationHandler.register(registries);
}