|
|
< Day Day Up > |
|
Chapter 6. Native WidgetsNative widgets are the heart of SWT. We say widget here, rather than control, because this chapter and the ones that follow describe the subclasses of class Widget, which include controls but also menus, items, and other noncontrols. Because this is such a large topic, we will cover it across several chapters.
These chapters are essentially a reference manual for the native widgets that are provided with SWT. For controls that have a particular item type[1] associated with them, the item is described with the control. For example, the section on the ToolBar control also describes the ToolItem widgets that are used with ToolBar.
You can certainly read through these chapters if you wish, but a better strategy might be to read just this overview, then skim over the following chapters the first time you read the book. Then go through the details of the sections that describe the widgets that your application will use (and their superclasses). As you work with the native widgets, you can use these chapters as a reference. Each section contains the following.
Note that in the interest of brevity, the two tables describe only the styles and event types that are added by the widget. To see the full list of supported styles and events, you need to follow the class hierarchy up to class Widget. The usage sections describe the API for the widget but in addition frequently contain useful hints about the more subtle usage patterns. |
|
|
< Day Day Up > |
|