SWT : The Standard Widget Toolkit, Volume 1

Steve Northover, Mike Wilson

  • 出版商: Addison Wesley
  • 出版日期: 2004-07-08
  • 售價: $1,970
  • 貴賓價: 9.5$1,872
  • 語言: 英文
  • 頁數: 592
  • 裝訂: Paperback
  • ISBN: 0321256638
  • ISBN-13: 9780321256638
  • 已絕版

買這商品的人也買了...

商品描述

Table of Contents:

Foreword by Erich Gamma.

Preface.

Introduction.

I. WIDGETS.

If You Don't Read Anything Else….

1. Widget Fundamentals.

What Is a Widget?

Widget Hierarchy.

Events and Listeners.

Application Data.

Querying the Display.

Summary.

2. The Keyboard.

When a Key Is Typed, Where Does It Go?

Keyboard Events and the Focus Control.

Traversal.

Accelerators.

Window System Keys.

Summary.

3. The Mouse.

Mouse Events.

Selection.

Summary.

4. Control Fundamentals.

Bounds.

Client Area.

Moving and Resizing.

Visibility.

Z-Order.

Enabling and Disabling.

Preferred Size.

Painting.

Repainting and Resizing.

Filling the Background.

Summary.

5. Display.

Naming Your Application.

Display Life Cycle.

Events and Listeners.

Event Filters.

Runnable "Execs".

The Event Loop.

Multithreaded Programming.

Timers.

Putting It All Together: Multithreading, Timers, Events, and the Event Loop.

Monitors, Bounds, and Client Area.

The Active Shell, All Shells, and Focus Control.

Cursor Control and Location.

Display Depth and DPI.

Updating the Display.

Application Data.

Coordinate Mapping and Mirroring.

Miscellaneous.

Summary.

6. Native Widgets.

Native Widgets Summary.

7. Basic Controls.

Class Label.

Class Button.

Class Text.

Class List.

Class Combo.

Summary.

8. Tool Bars and Menus.

Classes ToolBar and ToolItem.

Classes Menu and MenuItem.

Summary.

9. Advanced Controls.

Classes Tree and TreeItem.

Classes Table, TableItem, and TableColumn.

Classes TabFolder and TabItem.

Summary.

10. Range-Based Controls.

Class ProgressBar.

Class Scale.

Classes ScrollBar and Slider.

Summary.

11. Controls, Composites, Groups, and Shells.

Class Control.

Class Composite.

Class Group.

Class Shell.

Summary.

12. Canvas and Caret.

Class Canvas.

Class Caret.

Summary.

13. Draggable Controls.

Classes CoolBar and CoolItem.

Class Sash.

Class Tracker.

Summary.

14. Dialogs.

Creation.

Opening a Dialog.

Setting the Title.

MessageBox.

FileDialog.

DirectoryDialog.

ColorDialog.

FontDialog.

Summary.

15. Layout.

When Are Layouts Invoked?

Class Layout.

Layout Data.

Class FillLayout.

Classes RowLayout and RowData.

Class GridLayout.

Defining the Grid.

Class FormLayout.

Assigning Width and Height Hints.

Which Layout Should I Use?

Forcing a Layout.

Forcing Controls to Wrap.

Summary.

II. GRAPHICS.

16. Graphics Fundamentals.

Points and Rectangles.

Class Point.

Class Rectangle.

The Graphics Context.

Graphics and Threads.

Line and Figure Drawing.

Clipping and Regions.

17. Colors.

Class RGB.

Class Color.

System Colors.

18. Fonts.

Class FontData.

Class Font.

Drawing Text.

Class FontMetrics.

19. Images.

Class ImageData.

Class Image.

Animation.

Loading Images.

20. Cursors.

System Cursors.

Custom Cursors.

III. APPLICATIONS.

21. Minesweeper.

How to Play.

Implementation Notes.

22. FileExplorer.

Features.

Implementation Notes.

IV. NEXT TIME.

Index.