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<java.lang.String>
,com.google.gwt.uibinder.rebind.XMLElement.PostProcessingInterpreter<java.lang.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 toXMLElement.consumeInnerHtml(com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>)
.)
-
-
Constructor Summary
Constructors Constructor Description HtmlPlaceholderInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.messages.MessageWriter message, java.lang.String ancestorExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
consumePlaceholderInnards(com.google.gwt.uibinder.rebind.XMLElement elem)
java.lang.String
interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem)
Given an XMLElement, return its filtered value.protected java.lang.String
nextClosePlaceholder(java.lang.String name, java.lang.String value)
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard closing tag as example text.protected java.lang.String
nextOpenPlaceholder(java.lang.String name, java.lang.String value)
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard opening tag as example text.
-
-
-
Method Detail
-
interpretElement
public java.lang.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<java.lang.String>
- Overrides:
interpretElement
in classcom.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
- Throws:
UnableToCompleteException
- on error
-
consumePlaceholderInnards
protected java.lang.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
protected java.lang.String nextClosePlaceholder(java.lang.String name, java.lang.String value)
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard closing tag as example text.
-
nextOpenPlaceholder
protected java.lang.String nextOpenPlaceholder(java.lang.String name, java.lang.String value)
Returns thePlaceholderInterpreter.nextPlaceholder(String, String, String)
, using the givenname
andvalue
and a standard opening tag as example text.
-
-