Class AttributeMessageInterpreter
java.lang.Object
com.google.gwt.uibinder.elementparsers.AttributeMessageInterpreter
- All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
class AttributeMessageInterpreter
extends Object
implements com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
Examines each element for child <ui:attr/> elements, and replaces the
corresponding attributes of the examinee with references to the translatable
messages created.
That is, when examining element foo in
<foo bar="baz">
<ui:attr name="baz">
</foo>
cosume the ui:attr element, and declare a method on the Messages interface
with @Default("baz")-
Constructor Summary
ConstructorsConstructorDescriptionAttributeMessageInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer) -
Method Summary
Modifier and TypeMethodDescriptioninterpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) Given an XMLElement, return its filtered value.
-
Constructor Details
-
AttributeMessageInterpreter
public AttributeMessageInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer)
-
-
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>- Throws:
UnableToCompleteException- on error
-