Class AttributeMessageInterpreter
- java.lang.Object
-
- com.google.gwt.uibinder.elementparsers.AttributeMessageInterpreter
-
- All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>
class AttributeMessageInterpreter extends java.lang.Object implements com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.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
Constructors Constructor Description AttributeMessageInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem)
Given an XMLElement, return its filtered value.
-
-
-
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>
- Throws:
UnableToCompleteException
- on error
-
-