public class NuxeoDecoratorVisitor extends Object implements DecoratorVisitor
Modifier and Type | Field and Description |
---|---|
protected Annotation |
annotation |
protected AnnotationController |
controller |
protected com.google.gwt.dom.client.Node |
currentNode |
protected boolean |
decorating |
protected com.google.gwt.dom.client.Node |
endNode |
protected boolean |
endNodeBeforeStartNode |
protected boolean |
endNodeFound |
protected int |
endOffset |
protected boolean |
started |
protected com.google.gwt.dom.client.Node |
startNode |
protected int |
startOffset |
Constructor and Description |
---|
NuxeoDecoratorVisitor(Annotation annotation,
AnnotationController controller) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkEndNodeBeforeStartNode() |
protected void |
checkEndNodeFound() |
protected void |
decorateNode() |
protected void |
decorateText(String textToDecorate) |
protected com.google.gwt.dom.client.Element |
decorateTextWithSpan(String data) |
boolean |
doBreak() |
protected String |
getAfterText() |
protected com.google.gwt.dom.client.SpanElement |
getSpanElement(com.google.gwt.dom.client.Document document) |
protected void |
insertBefore(com.google.gwt.dom.client.Node parent,
com.google.gwt.dom.client.Node child,
com.google.gwt.dom.client.Node newChild) |
void |
process(com.google.gwt.dom.client.Node node) |
protected void |
processNode() |
protected void |
processNodeIfStarted() |
protected void |
processToFirstNode() |
protected void |
shouldStartProcess() |
protected boolean decorating
protected final com.google.gwt.dom.client.Node startNode
protected final com.google.gwt.dom.client.Node endNode
protected boolean started
protected int startOffset
protected int endOffset
protected final Annotation annotation
protected final AnnotationController controller
protected boolean endNodeFound
protected boolean endNodeBeforeStartNode
protected com.google.gwt.dom.client.Node currentNode
public NuxeoDecoratorVisitor(Annotation annotation, AnnotationController controller)
public void process(com.google.gwt.dom.client.Node node)
process
in interface NodeProcessor
protected void checkEndNodeBeforeStartNode()
protected void shouldStartProcess()
protected void processNodeIfStarted()
protected void processNode()
protected void processToFirstNode()
protected void decorateText(String textToDecorate)
protected void checkEndNodeFound()
protected String getAfterText()
protected com.google.gwt.dom.client.Element decorateTextWithSpan(String data)
protected void decorateNode()
protected com.google.gwt.dom.client.SpanElement getSpanElement(com.google.gwt.dom.client.Document document)
protected void insertBefore(com.google.gwt.dom.client.Node parent, com.google.gwt.dom.client.Node child, com.google.gwt.dom.client.Node newChild)
public boolean doBreak()
doBreak
in interface NodeProcessor
Copyright © 2017 Nuxeo. All rights reserved.