SWT : The Standard Widget Toolkit, Volume 1
暫譯: SWT:標準小工具工具包,第1卷

Steve Northover, Mike Wilson

  • 出版商: Addison Wesley
  • 出版日期: 2004-07-08
  • 售價: $2,050
  • 貴賓價: 9.5$1,948
  • 語言: 英文
  • 頁數: 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.

商品描述(中文翻譯)

目錄:


前言 由 Erich Gamma 撰寫。

序言。

導言。


I. 小工具。



如果你不讀其他內容…。


1. 小工具基礎。


什麼是小工具?



小工具層級。



事件與監聽器。



應用程式數據。



查詢顯示。



總結。


2. 鍵盤。


當按下鍵時,它去哪裡?



鍵盤事件與焦點控制。



遍歷。



加速鍵。



視窗系統鍵。



總結。


3. 滑鼠。


滑鼠事件。



選擇。



總結。


4. 控制基礎。


邊界。



客戶區域。



移動與調整大小。



可見性。



Z-順序。



啟用與禁用。



首選大小。



繪製。



重繪與調整大小。



填充背景。



總結。


5. 顯示。


為你的應用程式命名。



顯示生命週期。



事件與監聽器。



事件過濾器。



可執行的 'Execs'。



事件循環。



多執行緒編程。



計時器。



將所有內容整合在一起:多執行緒、計時器、事件與事件循環。



監視器、邊界與客戶區域。



活動外殼、所有外殼與焦點控制。



游標控制與位置。



顯示深度與 DPI。



更新顯示。



應用程式數據。



坐標映射與鏡像。



其他。



總結。


6. 原生小工具。


原生小工具總結。


7. 基本控制。


類別標籤。



類別按鈕。



類別文本。



類別列表。



類別組合框。



總結。


8. 工具列與選單。


類別工具列與工具項。



類別選單與選單項。



總結。


9. 進階控制。


類別樹與樹項。



類別表格、表格項與表格列。



類別標籤頁資料夾與標籤頁項。



總結。


10. 基於範圍的控制。


類別進度條。



類別刻度。



類別滾動條與滑桿。



總結。


11. 控制、組合、群組與外殼。


類別控制。



類別組合。



類別群組。



類別外殼。



總結。


12. 畫布與插入點。


類別畫布。



類別插入點。



總結。


13. 可拖動控制。


類別 CoolBar 與 CoolItem。



類別分隔條。



類別追蹤器。



總結。


14. 對話框。


創建。



打開對話框。



設置標題。



消息框。



文件對話框。



目錄對話框。



顏色對話框。



字型對話框。



總結。


15. 佈局。


何時調用佈局?



類別佈局。



佈局數據。



類別填充佈局。



類別行佈局與行數據。



類別網格佈局。



定義網格。



類別表單佈局。



分配寬度與高度提示。



我應該使用哪種佈局?



強制佈局。



強制控制項換行。



總結。


II. 圖形。


16. 圖形基礎。


點與矩形。



類別點。



類別矩形。



圖形上下文。



圖形與執行緒。



線條與圖形繪製。



剪裁與區域。


17. 顏色。


類別 RGB。



類別顏色。



系統顏色。


18. 字型。


類別字型數據。



類別字型。



繪製文本。



類別字型度量。


19. 圖像。


類別圖像數據。



類別圖像。



動畫。



加載圖像。


20. 游標。


系統游標。



自定義游標。


III. 應用程式。


21. 探地雷。


如何遊玩。



實現說明。


22. 檔案瀏覽器。


功能。



實現說明。


IV. 下次。


索引。