4.10. Summary

This chapter looked at three different ways to create new widgets. The first was creating a widget from scratch to represent a DOM element, although we mentioned that it’s unlikely you’ll have to do this because GWT already provides widgets for most DOM elements.

We had a useful discussion on the process of attaching and detaching widgets from the DOM and what GWT does for you to protect against memory leaks. Throughout the rest of the chapter we returned to those points a few times because it was useful to override the onLoad method when a widget had completed loading.

Next, we looked at how you can take a widget that almost does what you want and extend it to create what you need. In this case, you made an InlineLabel report ...

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.