Class ComputedAttributeInterpreter
java.lang.Object
com.google.gwt.uibinder.elementparsers.ComputedAttributeInterpreter
- All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
class ComputedAttributeInterpreter
extends Object
implements com.google.gwt.uibinder.rebind.XMLElement.Interpreter<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 ClassesModifier and TypeClassDescription(package private) class
(package private) static interface
-
Constructor Summary
ConstructorsConstructorDescriptionComputedAttributeInterpreter
(com.google.gwt.uibinder.rebind.UiBinderWriter writer) ComputedAttributeInterpreter
(com.google.gwt.uibinder.rebind.UiBinderWriter writer, ComputedAttributeInterpreter.Delegate delegate) -
Method Summary
Modifier and TypeMethodDescriptioninterpretElement
(com.google.gwt.uibinder.rebind.XMLElement elem) Given an XMLElement, return its filtered value.
-
Constructor Details
-
ComputedAttributeInterpreter
public ComputedAttributeInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer) -
ComputedAttributeInterpreter
public ComputedAttributeInterpreter(com.google.gwt.uibinder.rebind.UiBinderWriter writer, ComputedAttributeInterpreter.Delegate delegate)
-
-
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 interfacecom.google.gwt.uibinder.rebind.XMLElement.Interpreter<String>
- Throws:
UnableToCompleteException
- on error
-