Class ComputedAttributeInterpreter
- java.lang.Object
-
- com.google.gwt.uibinder.elementparsers.ComputedAttributeInterpreter
-
- All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>
class ComputedAttributeInterpreter extends java.lang.Object implements com.google.gwt.uibinder.rebind.XMLElement.Interpreter<java.lang.String>Assigns computed values to element attributes, e.g. styleName={resources.style.pretty}, which will become something like myWidget.setStyleName(resources.style().pretty()) in the generated code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classComputedAttributeInterpreter.DefaultDelegate(package private) static interfaceComputedAttributeInterpreter.Delegate
-
Constructor Summary
Constructors Constructor Description ComputedAttributeInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer)ComputedAttributeInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, ComputedAttributeInterpreter.Delegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringinterpretElement(com.google.gwt.uibinder.rebind.XMLElement elem)Given an XMLElement, return its filtered value.
-
-
-
Constructor Detail
-
ComputedAttributeInterpreter
public ComputedAttributeInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer)
-
ComputedAttributeInterpreter
public ComputedAttributeInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, ComputedAttributeInterpreter.Delegate delegate)
-
-
Method Detail
-
interpretElement
public java.lang.String interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) throws UnableToCompleteExceptionDescription 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<java.lang.String>- Throws:
UnableToCompleteException- on error
-
-