首页
论坛
图书
开发资料
在线文档
网址
下载
联系我们
站内搜索
: 请输入搜索关键词
当前页面:
图书首页
>
SWT: A Developer's Notebook
Table of Contents - SWT: A Developer's Notebook
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
•
Academic
•
Creating Toolbars Using SWT
SWT: A Developer's Notebook
By
Tim Hatton
Publisher
: O'Reilly
Pub Date
: October 2004
ISBN
: 0-596-00838-4
Pages
: 320
Copyright
The Developer's Notebook Series
Notebooks Are...
Notebooks Aren't...
Organization
Preface
What's Inside
Conventions Used in This Book
What You'll Need
Using Code Examples
We'd Like to Hear from You
Acknowledgments
Chapter 1. Getting Started
Section 1.1. Downloading the SWT Library
Section 1.2. Configuring Eclipse for SWT Development
Section 1.3. Supplying the SWT Package to the Java Compiler
Section 1.4. Specifying the Location of the Native Library
Section 1.5. Using swt.jar in Multiple Projects
Chapter 2. SWT Shells
Section 2.1. Creating a Simple Shell
Section 2.2. Executing the Example
Section 2.3. Working with Shell Styles
Section 2.4. Creating a Shell Styles Example
Section 2.5. Creating Child Shells
Section 2.6. Creating Multiple Child Windows
Section 2.7. Opening True Dialogs
Section 2.8. Setting the Shell Title Text
Section 2.9. Setting the Shell Icon
Chapter 3. SWT Menus
Section 3.1. Creating the Menu Bar
Section 3.2. Adding Drop-Down Menus
Section 3.3. Adding Separator Bars
Section 3.4. Creating a Complete Menu System
Section 3.5. Adding Cascading Submenus
Section 3.6. Making Menus Perform the Intended Action
Section 3.7. Working with Other Menu Item Styles
Section 3.8. Determining the State of CHECK and RADIO Menu Items
Section 3.9. Adding Keyboard Shortcuts
Section 3.10. Creating Pop-Up Menus
Chapter 4. SWT Toolbars
Section 4.1. Creating the Toolbar
Section 4.2. Creating Toolbar Buttons
Section 4.3. Creating a Complete Toolbar Example
Section 4.4. Making the Buttons WorkAdding Listeners
Section 4.5. Adding Separators to Your Toolbar
Section 4.6. Adding Check and Radio ToolItems
Section 4.7. Determining Whether a Check or Radio Button Is Selected
Section 4.8. Using Tool Tips
Chapter 5. SWT Text Fields
Section 5.1. Adding Text Fields to a Shell
Section 5.2. Adding a Border to a Text Field
Section 5.3. Positioning the Text Field
Section 5.4. Setting the Tab Order
Section 5.5. Setting the Text Size Limit
Section 5.6. Interacting with the Text in the Text Widget
Section 5.7. Populating Text Fields from a Database
Section 5.8. Appending Text to a Text Field's Contents
Section 5.9. Creating Multiline Text Fields
Section 5.10. Wrapping Text
Section 5.11. Adding Scrollbars
Section 5.12. Reacting to Text Events
Section 5.13. Performing Field Validation
Section 5.14. Creating Display-Only Text Fields
Section 5.15. Creating Password Fields
Chapter 6. SWT Buttons
Section 6.1. Creating Push-Style Buttons
Section 6.2. Responding to Button Clicks
Section 6.3. Creating Check Buttons
Section 6.4. Determining CHECK Button Status
Section 6.5. Adding Listeners to CHECK Buttons
Section 6.6. Using Radio-Style Buttons
Section 6.7. Causing No Radio Button to be Selected
Section 6.8. Creating Toggle Buttons
Section 6.9. Determining the State of a Toggle Button
Section 6.10. Creating Arrow Buttons
Section 6.11. Using Images with Buttons
Section 6.12. Setting Tool-Tip Text
Section 6.13. Enabling and Disabling Buttons
Chapter 7. SWT Lists
Section 7.1. Creating a List
Section 7.2. Adding Items to a List
Section 7.3. Inserting Items in the Middle of a List
Section 7.4. Populating a List from a Database
Section 7.5. Removing Items from a List
Section 7.6. Determining the Selected Items
Section 7.7. Determining the Selected Item with Multiple Selections
Section 7.8. Causing an Item to Appear Selected
Section 7.9. Changing an Item's Text Value
Section 7.10. Adding Scrollbars to a List
Chapter 8. The SWT Combo
Section 8.1. Creating a Combo List
Section 8.2. Adding Items to a Combo List
Section 8.3. Creating a Working Combo List
Section 8.4. Getting the Value of the Selected Item
Section 8.5. Programmatically Selecting an Item
Section 8.6. Removing Items from a Combo List
Section 8.7. Adding Events to Combo Widgets
Section 8.8. Allowing Additions to the Combo List
Section 8.9. Getting and Setting Text in the Text Portion of the Combo
Section 8.10. Setting the Maximum Length for Entries
Section 8.11. Deselecting Text
Section 8.12. Responding to Item Changes in the Combo
Section 8.13. Using the SIMPLE Style
Chapter 9. SWT Layouts
Section 9.1. What Are the SWT Layouts?
Section 9.2. Attaching a Layout to a Container
Section 9.3. Filling the Entire Container with Widgets
Section 9.4. Changing Widget Placement in FillLayouts
Section 9.5. Lining Up Widgets Using RowLayout
Section 9.6. Controlling Wrapping of Widgets with RowLayout
Section 9.7. Controlling Sizing of Widgets with RowLayout
Section 9.8. Creating Vertical Rows
Section 9.9. Creating a GridLayout
Section 9.10. Creating Column Headings
Section 9.11. Controlling Widget Sizing and Alignment
Section 9.12. Forcing Widgets to Span Multiple Cells
Section 9.13. The SWT FormLayout
Section 9.14. Creating a Simple Password Entry Form
Chapter 10. SWT Composites and Groups
Section 10.1. Subclassing the Composite Class
Section 10.2. Using the TextPaneComposite Class on a Shell
Section 10.3. Using Composite Class Styles
Section 10.4. Using the Group Class
Section 10.5. Creating Multiple Instances of a Composite Subclass
Section 10.6. Using Composites to Achieve Complex Designs
Section 10.7. An Alternate Approach
Chapter 11. SWT Tabbed Folders
Section 11.1. Creating an Instance of TabFolder
Section 11.2. Creating the Individual Tabs
Section 11.3. Adding Widgets to the Tabs
Section 11.4. Creating a Complete Tabbed Folder Example
Section 11.5. Setting a Default Tab
Chapter 12. SWT Tables
Section 12.1. Creating a Simple Table
Section 12.2. Highlighting Rows upon Selection
Section 12.3. Allowing Multiple-Row Selection
Section 12.4. Selecting Items Programmatically
Section 12.5. Changing the Background Color
Section 12.6. Creating a Searchable Table
Section 12.7. Setting the Background of a Single Cell
Section 12.8. Adding Find-and-Replace Functionality
Chapter 13. SWT Trees
Section 13.1. Creating the Tree
Section 13.2. Adding Items to the Tree
Section 13.3. Adding Items to Other Items
Section 13.4. Creating a Full Tree Example
Section 13.5. Using Images with TreeItem
Section 13.6. Changing the Image When the Item Is Expanded
Section 13.7. Using Trees with Other Widgets
Section 13.8. Working with Other Tree Styles
Section 13.9. Determining the Checked Item(s)
Chapter 14. Other SWT Listeners
Section 14.1. Using KeyListener
Section 14.2. Using MouseListener
Section 14.3. Working with the MouseEvent Class
Section 14.4. Responding to Shift-Click Events
Section 14.5. Working with the MouseMoveListener
Section 14.6. Using the MouseTrackListener
Chapter 15. SWT CoolBars
Section 15.1. Creating a CoolBar
Section 15.2. Using Events with CoolBars
Section 15.3. Adding Widgets Other Than Buttons to the CoolBar
Section 15.4. Preventing the User from Rearranging the CoolBar
Section 15.5. Using ToolBars with CoolBars
Chapter 16. SWT Slider and ProgressBar
Section 16.1. The SWT Slider Class
Section 16.2. Using the SWT ProgressBar Class
Section 16.3. Creating a Moving Progress Bar
Chapter 17. SWT Standard Dialogs
Section 17.1. Using the SWT MessageBox Class
Section 17.2. Using the SWT FileDialog Class
Section 17.3. Using the SWT FileDialog Class
Section 17.4. Using the SWT FileDialog Class
Section 17.5. The SWT ColorDialog Class
Section 17.6. Using the SWT FontDialog Class
Section 17.7. Using the SWT PrintDialog Class
Chapter 18. A Complete SWT Application
Section 18.1. Designing the Application
Section 18.2. Developing the Application
Section 18.3. The End of the SWT Road
Colophon
Index