Class HtmlPlaceholderInterpreter
java.lang.Object
com.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
com.google.gwt.uibinder.elementparsers.HtmlPlaceholderInterpreter
- All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>,com.google.gwt.uibinder.rebind.XMLElement.PostProcessingInterpreter<String>
- Direct Known Subclasses:
WidgetPlaceholderInterpreter
class HtmlPlaceholderInterpreter
extends com.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
Interprets the interior of an html message. Extends the basic
PlaceholderInterpreter to handle dom elements with field names and computed
attributes--basically any dom attribute that cannot live in a static value
and so must be wrapped in a placeholder. (Note that the interior of such an
element is processed with a recursive call to
XMLElement.consumeInnerHtml(com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>).)-
Field Summary
Fields inherited from class com.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
message, tokenator, uiWriter -
Constructor Summary
ConstructorsConstructorDescriptionHtmlPlaceholderInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.messages.MessageWriter message, String ancestorExpression) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconsumePlaceholderInnards(com.google.gwt.uibinder.rebind.XMLElement elem) interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) Given an XMLElement, return its filtered value.protected StringnextClosePlaceholder(String name, String value) Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String), using the givennameandvalueand a standard closing tag as example text.protected StringnextOpenPlaceholder(String name, String value) Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String), using the givennameandvalueand a standard opening tag as example text.Methods inherited from class com.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
nextPlaceholder, postProcess, stripTokens
-
Constructor Details
-
HtmlPlaceholderInterpreter
HtmlPlaceholderInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.messages.MessageWriter message, String ancestorExpression)
-
-
Method Details
-
interpretElement
public String interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) throws UnableToCompleteException Description copied from interface:com.google.gwt.uibinder.rebind.XMLElement.InterpreterGiven an XMLElement, return its filtered value.- Specified by:
interpretElementin interfacecom.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>- Overrides:
interpretElementin classcom.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter- Throws:
UnableToCompleteException- on error
-
consumePlaceholderInnards
protected String consumePlaceholderInnards(com.google.gwt.uibinder.rebind.XMLElement elem) throws UnableToCompleteException - Specified by:
consumePlaceholderInnardsin classcom.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter- Throws:
UnableToCompleteException
-
nextClosePlaceholder
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String), using the givennameandvalueand a standard closing tag as example text. -
nextOpenPlaceholder
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String), using the givennameandvalueand a standard opening tag as example text.
-