info.magnolia.ui.vaadin.gwt.client.editor.dom.processor
Class CommentProcessor

java.lang.Object
  extended by info.magnolia.ui.vaadin.gwt.client.editor.dom.processor.CommentProcessor

public class CommentProcessor
extends Object

Processor for comment elements. This processor builds a CmsNode-tree based on Comment elements in the DOM structure.
The nesting of elements is given by the opening and closing of the Comment tags wrapped by CMSComments. In case it processes a starting comment-tag a new MgnlElement is created and returned. In case of a closing comment-tag it will return the parent.


Constructor Summary
CommentProcessor()
           
 
Method Summary
 MgnlElement process(Model model, com.google.gwt.event.shared.EventBus eventBus, com.google.gwt.dom.client.Node node, MgnlElement currentElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentProcessor

public CommentProcessor()
Method Detail

process

public MgnlElement process(Model model,
                           com.google.gwt.event.shared.EventBus eventBus,
                           com.google.gwt.dom.client.Node node,
                           MgnlElement currentElement)
                    throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.