info.magnolia.ui.vaadin.gwt.client.editor.dom.processor
Class ElementProcessor
java.lang.Object
info.magnolia.ui.vaadin.gwt.client.editor.dom.processor.ElementProcessor
public class ElementProcessor
- extends Object
Processor for DOM
Element
s. This is a crucial part of the page editor as it:
- Creates a mapping between the
Element
of the DOM and MgnlElement
. Used e.g. in FocusModel
to map elements to the right area or component.
- Looks for certain markers in the attributes which will help inject the control bars at the right spot.
-
Modifies links based on their function inside the page:
- A link inside the navigation will be overwritten by an onclick method.
- Normal links will simply be disabled.
Method Summary |
void |
process(com.google.gwt.dom.client.Element element,
MgnlElement mgnlElement,
boolean preview)
Processes the current Element . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementProcessor
public ElementProcessor(com.google.web.bindery.event.shared.EventBus eventBus,
Model model)
process
public void process(com.google.gwt.dom.client.Element element,
MgnlElement mgnlElement,
boolean preview)
- Processes the current
Element
.
- Parameters:
element
- the current node beeing processedmgnlElement
- the associated MgnlElement
preview
-
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.