concept Composite in category gwt

This is an excerpt from Manning's book GWT in Action.
In GWT the fundamental building block of the user interface is the Widget, and its subclasses come in all shapes and sizes. To group these widgets you use a specialized type of widget called a Panel, which is a widget that has the ability to contain other widgets, including other panels. Next is the Composite, which is a specialized widget that can hide its internal implementation from outside callers. These widgets will be covered throughout this book.
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 widget is where you’ll spend most of your time—these are known in GWT as Composite widgets.
In this chapter we’ll look at how you can create new widgets. We’ll start with the approach that you’ll use the least often—creating a widget directly from a DOM element. It’s the least-used approach because GWT provides a lot of widgets already, but it does give us the best way of talking through the things you need to think of when looking at the two other approaches we consider: extending an existing widget to give the functionality you need (saves you time and effort) or creating a Composite, as we mentioned.
Another area of importance to your application is layout, which is done via panels (a special subset of widgets). Your overall application layout is most likely to use a layout panel (for example, DockLayoutPanel), whereas individual Composite widgets are more likely to use table-based layouts (for example, VerticalPanel).