Class BeanParser

java.lang.Object
com.google.gwt.uibinder.elementparsers.BeanParser
All Implemented Interfaces:
ElementParser

public class BeanParser extends 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

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface ElementParser
      Parameters:
      elem - the element to be parsed
      fieldName - the name of the widget field to be initialized
      type - TODO
      writer - the writer
      Throws:
      UnableToCompleteException