Jump to: navigation, search

SWT Widget Style Bits

Revision as of 08:37, 10 April 2013 by Ravi.mavani22.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

All SWT Widgets take as a constructor argument a set of style bits that control various aspects of their behavior and appearance. The set of possible style bits are defined in the class org.eclipse.swt.SWT, but only a small subset applies to each Widget. The table below describes the bits that are applicable to each kind of Widget.

Widget Class Styles Inherited Styles
org.eclipse.swt.widgets.Button TOGGLE, ARROW, PUSH, RADIO, CHECK, FLAT, UP, DOWN, LEFT, RIGHT, CENTER org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Canvas none org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Caret none org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.ColorDialog none org.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.Combo DROP_DOWN, READ_ONLY, SIMPLE org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Composite NO_BACKGROUND, NO_FOCUS, NO_REDRAW_RESIZE, NO_MERGE_PAINTS, NO_RADIO_GROUP, EMBEDDED, DOUBLE_BUFFERED, UP org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control BORDER, LEFT_TO_RIGHT, RIGHT_TO_LEFT org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.CoolBar FLAT, HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.CoolItem DROP_DOWN org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.DateTime DATE, TIME, CALENDAR, SHORT, MEDIUM, LONG org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Decorations TOOL, NO_TRIM, RESIZE, TITLE, CLOSE, MIN, MAX, BORDER, ON_TOP org.eclipse.swt.widgets.Canvas, org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Dialog PRIMARY_MODAL, APPLICATION_MODAL, SYSTEM_MODAL none
org.eclipse.swt.widgets.DirectoryDialog none org.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.ExpandBar V_SCROLL org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.ExpandItem none org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.FileDialog MULTI, OPEN, SAVE org.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.FontDialog none org.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.Group SHADOW_IN, SHADOW_OUT, SHADOW_ETCHED_IN, SHADOW_ETCHED_OUT, SHADOW_NONE org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.IME none org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item none org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Label SEPARATOR, WRAP, SHADOW_IN, SHADOW_OUT, SHADOW_NONE, LEFT, RIGHT, CENTER, HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Link none org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.List MULTI, SINGLE org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Menu BAR, DROP_DOWN, POP_UP, NO_RADIO_GROUP, LEFT_TO_RIGHT, RIGHT_TO_LEFT org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.MenuItem SEPARATOR, PUSH, RADIO, CHECK, CASCADE org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.MessageBox none org.eclipse.swt.widgets.Dialog
org.eclipse.swt.widgets.ProgressBar INDETERMINATE, MIN, SMOOTH, HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Sash SMOOTH, HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Scale HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Scrollable H_SCROLL, V_SCROLL org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.ScrollBar HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Shell TOOL, NO_TRIM, RESIZE, TITLE, CLOSE, MIN, MAX, BORDER, ON_TOP, MODELESS, PRIMARY_MODAL, APPLICATION_MODAL, SYSTEM_MODAL org.eclipse.swt.widgets.Decorations, org.eclipse.swt.widgets.Canvas, org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Slider HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Spinner READ_ONLY, WRAP org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TabFolder TOP, BOTTOM org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TabItem none org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Table CHECK, MULTI, SINGLE, HIDE_SELECTION, FULL_SELECTION, VIRTUAL org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TableColumn LEFT, RIGHT, CENTER org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TableItem none org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Text MULTI, SINGLE, READ_ONLY, WRAP, SEARCH, PASSWORD, LEFT, RIGHT, CENTER org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.ToolBar WRAP, SHADOW_OUT, FLAT, RIGHT, HORIZONTAL, VERTICAL org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.ToolItem DROP_DOWN, SEPARATOR, PUSH, RADIO, CHECK org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.ToolTip BALLOON org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Tracker RESIZE, UP, DOWN, LEFT, RIGHT org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Tray none org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TrayItem none org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Tree CHECK, MULTI, SINGLE, FULL_SELECTION, VIRTUAL org.eclipse.swt.widgets.Composite, org.eclipse.swt.widgets.Scrollable, org.eclipse.swt.widgets.Control, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TreeColumn LEFT, RIGHT, CENTER org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.TreeItem none org.eclipse.swt.widgets.Item, org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Widget none none