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

    Constructors
    Constructor
    Description
    HtmlPlaceholderInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, com.google.gwt.uibinder.rebind.messages.MessageWriter message, String ancestorExpression)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    Returns the PlaceholderInterpreter.nextPlaceholder(String, String, String), using the given name and value and a standard closing tag as example text.
    protected String
    Returns the PlaceholderInterpreter.nextPlaceholder(String, String, String), using the given name and value and a standard opening tag as example text.

    Methods inherited from class com.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter

    nextPlaceholder, postProcess, stripTokens

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
      Overrides:
      interpretElement in class com.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 class com.google.gwt.uibinder.rebind.messages.PlaceholderInterpreter
      Throws:
      UnableToCompleteException
    • nextClosePlaceholder

      protected String nextClosePlaceholder(String name, String value)
      Returns the PlaceholderInterpreter.nextPlaceholder(String, String, String), using the given name and value and a standard closing tag as example text.
    • nextOpenPlaceholder

      protected String nextOpenPlaceholder(String name, String value)
      Returns the PlaceholderInterpreter.nextPlaceholder(String, String, String), using the given name and value and a standard opening tag as example text.