Class BeanParser
java.lang.Object
com.google.gwt.uibinder.elementparsers.BeanParser
- All Implemented Interfaces:
ElementParser
Utility methods for discovering bean-like properties and generating code to
initialize them.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parse
(com.google.gwt.uibinder.rebind.XMLElement elem, String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer) Generates code to initialize all bean attributes on the given element.
-
Constructor Details
-
BeanParser
public BeanParser(com.google.gwt.uibinder.rebind.UiBinderContext context)
-
-
Method Details
-
parse
public void parse(com.google.gwt.uibinder.rebind.XMLElement elem, String fieldName, JClassType type, com.google.gwt.uibinder.rebind.UiBinderWriter writer) throws UnableToCompleteException Generates code to initialize all bean attributes on the given element. Includes support for <ui:attribute /> children that will apply to setters- Specified by:
parse
in interfaceElementParser
- Parameters:
elem
- the element to be parsedfieldName
- the name of the widget field to be initializedtype
- TODOwriter
- the writer- Throws:
UnableToCompleteException
-