Class DomElementParser
java.lang.Object
com.google.gwt.uibinder.elementparsers.DomElementParser
- All Implemented Interfaces:
ElementParser
Parses a dom element and all of its children. Note that this parser does not
make recursive calls to parse child elements, unlike what goes on with widget
parsers. Instead, we consume the inner html of the given element into a
single string literal, used to instantiate the dom tree at run time.
-
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) Parse the given element, generating the code to initialize it from the element's attributes and children.
-
Constructor Details
-
DomElementParser
public DomElementParser()
-
-
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 Description copied from interface:ElementParser
Parse the given element, generating the code to initialize it from the element's attributes and children.- 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
- on error
-