18.6. Preparing to write a generator

Our generator is going to be fairly simple. It will take all the widgets and panel classes used in our example application and generate new classes that log each constructor and method invocation to the GWT dialog-based logger (which is available from GWT 2.1 onward) if the configuration property gwtia.debugWidgets is set to true. Figure 18.5 shows the result of all the logging in action.

Figure 18.5. The result of the generator built in this chapter. In the Logging window you can see various method calls to the methods of a FlowPanel, Label, and Button.

In the figure, the user has clicked the Add A Label ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.