public class HtmlInterpreter extends Object implements com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
XMLElement.consumeInnerHtml(com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>)
.
Constructor and Description |
---|
HtmlInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer,
String ancestorExpression,
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String> messageInterpreter)
Rather than using this constructor, you probably want to use the
newInterpreterForUiObject(com.google.gwt.uibinder.rebind.UiBinderWriter, java.lang.String) factory method. |
Modifier and Type | Method and Description |
---|---|
String |
interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem)
Given an XMLElement, return its filtered value.
|
static HtmlInterpreter |
newInterpreterForUiObject(com.google.gwt.uibinder.rebind.UiBinderWriter writer,
String uiExpression)
A convenience factory method for the most common use of this class, to work
with HTML that will eventually be rendered under a
UIObject (or really, any object that
responds to getElement() ). |
public HtmlInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, String ancestorExpression, com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String> messageInterpreter)
newInterpreterForUiObject(com.google.gwt.uibinder.rebind.UiBinderWriter, java.lang.String)
factory method.ancestorExpression
- An expression that can be evaluated at runtime to
find an Element that will be an ancestor of all Elements generated
from the interpreted HTML.messageInterpreter
- an interpreter to handle msg and ph elements,
typically an instance of HtmlMessageInterpreter
. This
interpreter gets last crackpublic static HtmlInterpreter newInterpreterForUiObject(com.google.gwt.uibinder.rebind.UiBinderWriter writer, String uiExpression)
UIObject
(or really, any object that
responds to getElement()
). Uses an instance of
HtmlMessageInterpreter
to process message elements.uiExpression
- An expression that can be evaluated at runtime to find
an object whose getElement() method can be called to get an
ancestor of all Elements generated from the interpreted HTML.public String interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) throws UnableToCompleteException
com.google.gwt.uibinder.rebind.XMLElement.Interpreter
interpretElement
in interface com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
UnableToCompleteException
- on errorCopyright © 2018. All rights reserved.