Package org.waveprotocol.wave.client.editor

Examples of org.waveprotocol.wave.client.editor.RenderingMutationHandler


    assertSame(h, r2.getEventHandler(el1));
    assertSame(a, r2.getRenderer(el1));
  }

  public void testDoubleRegister() {
    RenderingMutationHandler rmh = mock(RenderingMutationHandler.class);
    ElementHandlerRegistry r1 = ElementHandlerRegistry.ROOT.createExtension();
    r1.registerRenderingMutationHandler("x", rmh);

    assertSame(rmh, r1.getRenderer(el1));
    assertSame(rmh, r1.getMutationHandler(el1));
View Full Code Here


  public static void register(ElementHandlerRegistry handlerRegistry) {
    register(handlerRegistry, FULL_TAGNAME);
  }

  public static void register(ElementHandlerRegistry handlerRegistry, String tagName) {
    RenderingMutationHandler renderingMutationHandler = new TestRenderer();
    handlerRegistry.registerRenderingMutationHandler(tagName, renderingMutationHandler);
    handlerRegistry.registerNiceHtmlRenderer(tagName, PasteFormatRenderers.SHALLOW_CLONE_RENDERER);
  }
View Full Code Here

  /**
   * Registers subclasses
   */
  public static void register(ElementHandlerRegistry handlerRegistry) {
    RenderingMutationHandler renderingMutationHandler =
        CheckBoxRendereringMutationHandler.getInstance();
    handlerRegistry.registerRenderingMutationHandler(TAGNAME, renderingMutationHandler);
    handlerRegistry.registerEventHandler(TAGNAME, CHECKBOX_NODE_EVENT_HANDLER);
  }
View Full Code Here

  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);
View Full Code Here

  public static void register(ElementHandlerRegistry handlerRegistry) {
    register(handlerRegistry, FULL_TAGNAME);
  }

  public static void register(ElementHandlerRegistry handlerRegistry, String tagName) {
    RenderingMutationHandler renderingMutationHandler = new TestRenderer();
    handlerRegistry.registerRenderingMutationHandler(tagName, renderingMutationHandler);
    handlerRegistry.registerNiceHtmlRenderer(tagName, PasteFormatRenderers.SHALLOW_CLONE_RENDERER);
  }
View Full Code Here

  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);
View Full Code Here

  /**
   * Registers subclasses
   */
  public static void register(ElementHandlerRegistry handlerRegistry) {
    RenderingMutationHandler renderingMutationHandler =
        CheckBoxRendereringMutationHandler.getInstance();
    handlerRegistry.registerRenderingMutationHandler(TAGNAME, renderingMutationHandler);
    handlerRegistry.registerEventHandler(TAGNAME, CHECKBOX_NODE_EVENT_HANDLER);
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.editor.RenderingMutationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.