Procboy's BLog

计算机技术交流,大家都来聊聊看^_^

SWT常用的一些界面类

Widget
 Purpose
 Styles
 Events
 
Button
 A standard push button.
 BORDER, CHECK, PUSH, RADIO, TOGGLE, FLAT, LEFT, RIGHT, CENTER, ARROW (with UP, DOWN)
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection
 
Canvas
 A composite control that can contain other controls, and also is a drawing surface. Often the foundation of custom controls.
 BORDER, H_SCROLL, V_SCROLL, NO_BACKGROUND, NO_FOCUS, NO_MERGE_PAINTS, NO_REDRAW_RESIZE, NO_RADIO_GROUP
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
Caret
 The standard I-beam caret used to indicate the insertion point for text.
   Dispose
 
Combo
 A standard combo box—that is, the combination of a text control and a drop-down list.
 BORDER, DROP_DOWN, READ_ONLY, SIMPLE
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, DefaultSelection, Modify, Selection
 
Composite
 Control that can contain other widgets.
 BORDER, H_SCROLL, V_SCROLL
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
CoolBar
 A composite control that allows users to reposition contained items dynamically.
 BORDER
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
CoolItem
 A UI element that represents a positionable area of a cool bar.
 DROP_DOWN
 Dispose
 
Group
 A composite control that groups other widgets together. Can enclose them in an etched border and display a label.
 BORDER, SHADOW_ETCHED_IN, SHADOW_ETCHED_OUT, SHADOW_IN, SHADOW_OUT, SHADOW_NONE
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
Label
 The standard label control—displays text or an image.
 BORDER, CENTER, LEFT, RIGHT, WRAP, SEPARATOR (with HORIZONTAL, SHADOW_IN, SHADOW_OUT, SHADOW_NONE, VERTICAL)
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
List
 The standard list control—allows the user to choose items from a list of items.
 BORDER, H_SCROLL, V_SCROLL, SINGLE, MULTI
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection, DefaultSelection
 
Menu
 The standard menu control—contains selectable menu items.
 BAR, DROP_DOWN, NO_RADIO_GROUP, POP_UP
 Dispose, Help, Hide, Show
 
MenuItem
 UI object that represents an item in a menu.
 CHECK, CASCADE, PUSH, RADIO, SEPARATOR
 Dispose, Arm, Help, Selection
 
ProgressBar
 The standard progress bar—displays progress of a task to the user, usually as a bar graph.
 BORDER, INDETERMINATE, SMOOTH, HORIZONTAL, VERTICAL
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
Sash
 Allows the user to drag a "rubber-banded" outline of the sash within the parent window to allow users to resize child widgets by moving their dividing lines.
 BORDER, HORIZONTAL, VERTICAL
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection
 
Scale
 Control that represents a range of numeric values.
 BORDER, HORIZONTAL, VERTICAL
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection
 
ScrollBar
 The standard scrollbar—represents a range of positive numeric values.
 HORIZONTAL, VERTICAL
 Dispose, Selection
 
Shell
 A window that is managed by the operating system window manager.
 BORDER, H_SCROLL, V_SCROLL, CLOSE, MIN, MAX, NO_TRIM, RESIZE, TITLE (see also SHELL_TRIM,DIALOG_TRIM)
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Activate, Close, Deactivate,Deiconify, Iconify
 
Slider
 Control that represents a range of numeric values, which the user can select by positioning a draggable thumb.
 BORDER, HORIZONTAL, VERTICAL
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection
 
TabFolder
 Composite control that groups controls into pages that the user can select using labeled tabs.
 BORDER
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection
 
TabItem
 Control corresponding to a tab in a tab folder.
   Dispose
 
Table
 Control that displays a list of table items.
 BORDER, H_SCROLL, V_SCROLL, SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection, DefaultSelection
 
TableColumn
 UI object that represents a column in a table.
 LEFT, RIGHT, CENTER
 Dispose, Move, Resize, Selection
 
TableItem
 UI object that represents an item in a table.
   Dispose
 
Text
 The standard text control, which allows the user to type text into it.
 BORDER, SINGLE, READ_ONLY, LEFT, CENTER, RIGHT, WRAP, MULTI (with H_SCROLL, V_SCROLL)
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, DefaultSelection, Modify, Verify
 
ToolBar
 The standard toolbar—a composite control that contains toolbar items.
 BORDER, FLAT, WRAP, RIGHT, SHADOW_OUT HORIZONTAL, VERTICAL
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize
 
ToolItem
 UI object that represents an item in a toolbar.
 PUSH, CHECK, RADIO, SEPARATOR, DROP_DOWN
 Dispose, Selection
 
Tracker
 UI object that implements "rubber-banding" rectangles.
 LEFT, RIGHT, UP, DOWN, RESIZE
 Dispose, Move, Resize
 
Tree
 Control that displays a hierarchical list of tree items.
 BORDER, H_SCROLL, V_SCROLL, SINGLE, MULTI, CHECK
 Dispose, FocusIn, FocusOut, Help, KeyDown, KeyUp, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Selection, DefaultSelection, Collapse, Expand
 
TreeItem
 UI object that represents a tree item in a tree.
   Dispose
 

posted on 2006-10-30 23:17 Procboy 阅读(478) 评论(1)  编辑  收藏 所属分类: Eclipse

评论

# re: SWT常用的一些界面类 2006-10-31 12:45 菜鸟[匿名]

可不可以多发一点啊??  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: