Chapter 4. Creating your own widgets

 

This chapter covers
  • Understanding widgets and their lifecycles
  • Creating new types of widgets, composite widgets, and panels
  • Using layout panels

 

After you’ve spent some time using and styling the standard widgets GWT provides you, perhaps as you were exploring and extending the example in chapter 3, you may start having a number of questions, such as

  • Why isn’t this “thingy” provided as a widget?
  • Why can’t widget X do this little extra thing?
  • How can I treat a group of widgets that I use regularly as only one widget?

Fear not; the answers to these questions and more are the topic of this chapter. Once you move past any nontrivial application, treating a group of widgets as one new reusable ...

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.