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
ConstructorDescriptionHtmlPlaceholderInterpreter
(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.messages.MessageWriter message, String ancestorExpression) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
consumePlaceholderInnards
(com.google.gwt.uibinder.rebind.XMLElement elem) interpretElement
(com.google.gwt.uibinder.rebind.XMLElement elem) Given an XMLElement, return its filtered value.protected String
nextClosePlaceholder
(String name, String value) Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard closing tag as example text.protected String
nextOpenPlaceholder
(String name, String value) Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and 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.Interpreter
Given an XMLElement, return its filtered value.- Specified by:
interpretElement
in interfacecom.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
- Overrides:
interpretElement
in 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:
consumePlaceholderInnards
in classcom.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
- Throws:
UnableToCompleteException
-
nextClosePlaceholder
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard closing tag as example text. -
nextOpenPlaceholder
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard opening tag as example text.
-