com.sencha.gwt.uibinder.elementparsers
Class HtmlMessageInterpreter

java.lang.Object
  extended by com.sencha.gwt.uibinder.elementparsers.HtmlMessageInterpreter
All Implemented Interfaces:
com.sencha.gwt.uibinder.rebind.XMLElement.Interpreter<String>

public class HtmlMessageInterpreter
extends Object
implements com.sencha.gwt.uibinder.rebind.XMLElement.Interpreter<String>

Processes elements inside HTML values, which themselves are allowed to contain HTML. That HTML may hold elements with ui:field attributes and computed attributes, which must be replaced by placeholders in the generated message.


Nested Class Summary
static interface HtmlMessageInterpreter.PlaceholderInterpreterProvider
          Provides instances of PlaceholderInterpreter, to allow customized handling of the innards of a msg element.
 
Constructor Summary
HtmlMessageInterpreter(com.sencha.gwt.uibinder.rebind.UiBinderWriter uiWriter, HtmlMessageInterpreter.PlaceholderInterpreterProvider phiProvider)
          Build a HtmlMessageInterpreter that uses customized placeholder interpreter instances.
HtmlMessageInterpreter(com.sencha.gwt.uibinder.rebind.UiBinderWriter uiWriter, String ancestorExpression)
          Build a normally configured HtmlMessageInterpreter, able to handle put placeholders around dom elements with ui:ph attributes and computed attributes.
 
Method Summary
 String interpretElement(com.sencha.gwt.uibinder.rebind.XMLElement elem)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlMessageInterpreter

public HtmlMessageInterpreter(com.sencha.gwt.uibinder.rebind.UiBinderWriter uiWriter,
                              HtmlMessageInterpreter.PlaceholderInterpreterProvider phiProvider)
Build a HtmlMessageInterpreter that uses customized placeholder interpreter instances.


HtmlMessageInterpreter

public HtmlMessageInterpreter(com.sencha.gwt.uibinder.rebind.UiBinderWriter uiWriter,
                              String ancestorExpression)
Build a normally configured HtmlMessageInterpreter, able to handle put placeholders around dom elements with ui:ph attributes and computed attributes.

Method Detail

interpretElement

public String interpretElement(com.sencha.gwt.uibinder.rebind.XMLElement elem)
                        throws UnableToCompleteException
Specified by:
interpretElement in interface com.sencha.gwt.uibinder.rebind.XMLElement.Interpreter<String>
Throws:
UnableToCompleteException


Copyright © 2011. All Rights Reserved.