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