|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.uibinder.elementparsers.HtmlInterpreter
public class HtmlInterpreter
This is the most generally useful interpreter, and the most likely to be used
by a custom parser when calling XMLElement.consumeInnerHtml(com.google.gwt.uibinder.rebind.XMLElement.Interpreter.
| Constructor Summary | |
|---|---|
HtmlInterpreter(UiBinderWriter writer,
java.lang.String ancestorExpression,
XMLElement.Interpreter<java.lang.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. |
|
| Method Summary | |
|---|---|
java.lang.String |
interpretElement(XMLElement elem)
Given an XMLElement, return its filtered value. |
static HtmlInterpreter |
newInterpreterForUiObject(UiBinderWriter writer,
java.lang.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()). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlInterpreter(UiBinderWriter writer,
java.lang.String ancestorExpression,
XMLElement.Interpreter<java.lang.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 crack| Method Detail |
|---|
public static HtmlInterpreter newInterpreterForUiObject(UiBinderWriter writer,
java.lang.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 java.lang.String interpretElement(XMLElement elem)
throws UnableToCompleteException
XMLElement.Interpreter
interpretElement in interface XMLElement.Interpreter<java.lang.String>UnableToCompleteException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||