Example usage for Java com.google.gwt.uibinder.rebind UiBinderWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
void | beginAttachedSection(String element) Begin a section where a new attachable element is being parsed--that is, one that will be constructed as a big innerHTML string, and then briefly attached to the dom to allow fields accessing its to be filled (at the moment, HasHTMLParser, HTMLPanelParser, and DomElementParser.). |
FieldWriter | declareField(XMLElement source, String typeName) Declares a field of the given type name, returning the name of the declared field. |
void | die(String message, Object... params) Post an error message and halt processing. |
void | die(XMLElement context, String message, Object... params) Post an error message about a specific XMLElement and halt processing. |
void | die(String message) Post an error message and halt processing. |
void | endAttachedSection() End the current attachable section. |
String | escapeTextForJavaStringLiteral(String text) Escape characters that would mess up interpretation of this string as a string literal in generated code (that is, protect \, \n and " ). |
JClassType | findFieldType(XMLElement elem) Finds the JClassType that corresponds to this XMLElement, which must be a Widget or an Element. |
void | genStringPropertySet(String fieldName, String propName, String value) Generates the code to set a string property. |
TypeOracle | getOracle() Gets the type oracle. |
boolean | isWidgetElement(XMLElement elem) |
FieldWriter | parseElementToField(XMLElement elem) Parses the object associated with the specified element, and returns the field writer that will hold it. |
void | setFieldInitializer(String fieldName, String factoryMethod) Gives the writer the initializer to use for this field instead of the default GWT.create call. |
void | setFieldInitializerAsConstructor(String fieldName, String... args) Instructs the writer to initialize the field with a specific constructor invocation, instead of the default GWT.create call. |
void | warn(XMLElement context, String message, Object... params) Post a warning message. |