📄 swt.java
字号:
/** * Style constant to ensure no trimmings are used (value is 1<<3). * <br>Note that this overrides all other trim styles. * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * </ul></p> */ public static final int NO_TRIM = 1 << 3; /** * Style constant for resize box trim (value is 1<<4). * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * <li><code>Tracker</code></li> * </ul></p> */ public static final int RESIZE = 1 << 4; /** * Style constant for title area trim (value is 1<<5). * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * </ul></p> */ public static final int TITLE = 1 << 5; /** * Style constant for close box trim (value is 1<<6, * since we do not distinguish between CLOSE style and MENU style). * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * </ul></p> */ public static final int CLOSE = 1 << 6; /** * Style constant for shell menu trim (value is 1<<6, * since we do not distinguish between CLOSE style and MENU style). * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * </ul></p> */ public static final int MENU = CLOSE; /** * Style constant for minimize box trim (value is 1<<7). * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * </ul></p> */ public static final int MIN = 1 << 7; /** * Style constant for maximize box trim (value is 1<<10). * <p><b>Used By:</b><ul> * <li><code>Decorations</code> and subclasses</li> * </ul></p> */ public static final int MAX = 1 << 10; /** * Style constant for horizontal scrollbar behavior (value is 1<<8). * <p><b>Used By:</b><ul> * <li><code>Scrollable</code> and subclasses</li> * </ul></p> */ public static final int H_SCROLL = 1 << 8; /** * Style constant for vertical scrollbar behavior (value is 1<<9). * <p><b>Used By:</b><ul> * <li><code>Scrollable</code> and subclasses</li> * </ul></p> */ public static final int V_SCROLL = 1 << 9; /** * Style constant for bordered behavior (value is 1<<11). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Control</code> and subclasses</li> * </ul></p> */ public static final int BORDER = 1 << 11; /** * Style constant indicating that the window manager should clip * a widget's children with respect to its viewable area. (value is 1<<12). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Control</code> and subclasses</li> * </ul></p> */ public static final int CLIP_CHILDREN = 1 << 12; /** * Style constant indicating that the window manager should clip * a widget's siblings with respect to its viewable area. (value is 1<<13). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Control</code> and subclasses</li> * </ul></p> */ public static final int CLIP_SIBLINGS = 1 << 13; /** * Style constant for always on top behavior (value is 1<<14). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Shell</code> and subclasses</li> * </ul></p> */ public static final int ON_TOP = 1 << 14; /** * Trim style convenience constant for the most common top level shell appearance * (value is CLOSE|TITLE|MIN|MAX|RESIZE). * <p><b>Used By:</b><ul> * <li><code>Shell</code></li> * </ul></p> */ public static final int SHELL_TRIM = CLOSE | TITLE | MIN | MAX | RESIZE; /** * Trim style convenience constant for the most common dialog shell appearance * (value is CLOSE|TITLE|BORDER). * <p><b>Used By:</b><ul> * <li><code>Shell</code></li> * </ul></p> */ public static final int DIALOG_TRIM = TITLE | CLOSE | BORDER; /** * Style constant for modeless behavior (value is 0). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Dialog</code></li> * <li><code>Shell</code></li> * </ul></p> */ public static final int MODELESS = 0; /** * Style constant for primary modal behavior (value is 1<<15). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Dialog</code></li> * <li><code>Shell</code></li> * </ul></p> */ public static final int PRIMARY_MODAL = 1 << 15; /** * Style constant for application modal behavior (value is 1<<16). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Dialog</code></li> * <li><code>Shell</code></li> * </ul></p> */ public static final int APPLICATION_MODAL = 1 << 16; /** * Style constant for system modal behavior (value is 1<<17). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Dialog</code></li> * <li><code>Shell</code></li> * </ul></p> */ public static final int SYSTEM_MODAL = 1 << 17; /** * Style constant for selection hiding behavior when the widget loses focus (value is 1<<15). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Table</code></li> * </ul></p> */ public static final int HIDE_SELECTION = 1 << 15; /** * Style constant for full row selection behavior. (value is 1<<16). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>StyledText</code></li> * <li><code>Table</code></li> * <li><code>TableTree</code></li> * </ul></p> */ public static final int FULL_SELECTION = 1 << 16; /** * Style constant for flat appearance. (value is 1<<23). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Button</code></li> * <li><code>ToolBar</code></li> * </ul></p> */ public static final int FLAT = 1 << 23; /** * Style constant for flat appearance. (value is 1<<16). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>ProgressBar</code></li> * </ul></p> */ public static final int SMOOTH = 1 << 16; /** * Style constant for no background behavior (value is 1<<18). * <p> * By default, before a widget paints, the client area is filled with the current background color. * When this style is specified, the background is not filled, and the application is responsible * for filling every pixel of the client area. * This style might be used as an alternative to "double-buffering" in order to reduce flicker. * This style does not mean "transparent" - widgets that are obscured will not draw through. * </p><p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> */ public static final int NO_BACKGROUND = 1 << 18; /** * Style constant for does not take focus behavior (value is 1<<19). * <br>Note that this is a <em>HINT</em>. * <p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> */ public static final int NO_FOCUS = 1 << 19; /** * Style constant for no redraw on resize behavior (value is 1<<20). * <p> * This style stops the entire client area from being invalidated when the size * of the Canvas changes. Specifically, when the size of the Canvas gets smaller, * the SWT.Paint event is not sent. When it gets bigger, an SWT.Paint event is * sent with a GC clipped to only the new areas to be painted. Without this * style, the entire client area will be repainted. * </p><p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> */ public static final int NO_REDRAW_RESIZE = 1 << 20; /** * Style constant for no paint event merging behavior (value is 1<<21). * <p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> */ public static final int NO_MERGE_PAINTS = 1 << 21; /** * Style constant for preventing child radio group behavior (value is 1<<22). * <p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> */ public static final int NO_RADIO_GROUP = 1 << 22; /** * Style constant for left to right orientation (value is 1<<25). * <p> * When orientation is not explicitly specified, orientation is * inherited. This means that children will be assigned the * orientation of their parent. To override this behavior and * force an orientation for a child, explicitly set the orientation * of the child when that child is created. * </p> * <p><b>Used By:</b><ul> * <li><code>Control</code></li> * <li><code>Menu</code></li> * <li><code>GC</code></li> * </ul></p> * * @since 2.1.2 */ public static final int LEFT_TO_RIGHT = 1 << 25; /** * Style constant for right to left orientation (value is 1<<26). * <p> * When orientation is not explicitly specified, orientation is * inherited. This means that children will be assigned the * orientation of their parent. To override this behavior and * force an orientation for a child, explicitly set the orientation * of the child when that child is created. * </p> * <p><b>Used By:</b><ul> * <li><code>Control</code></li> * <li><code>Menu</code></li> * <li><code>GC</code></li> * </ul></p> * * @since 2.1.2 */ public static final int RIGHT_TO_LEFT = 1 << 26; /** * Style constant to indicate coordinate mirroring (value is 1<<27). * <p><b>Used By:</b><ul> * <li><code>Control</code></li> * <li><code>Menu</code></li> * </ul></p> * * @since 2.1.2 */ public static final int MIRRORED = 1 << 27; /** * Style constant to allow embedding (value is 1<<24). * <p><b>Used By:</b><ul> * <li><code>Composite</code></li> * </ul></p> * * @since 3.0 */ public static final int EMBEDDED = 1 << 24; /** * Style constant to allow virtual data (value is 1<<28). * <p><b>Used By:</b><ul> * <li><code>Table</code></li> * </ul></p> * * @since 3.0 */ public static final int VIRTUAL = 1 << 28; /** * Style constant for align up behavior (value is 1<<7, * since align UP and align TOP are considered the same). * <p><b>Used By:</b><ul> * <li><code>Button</code> with <code>ARROW</code> style</li> * <li><code>Tracker</code></li> * </ul></p> */ public static final int UP = 1 << 7; /** * Style constant for align top behavior (value is 1<<7, * since align UP and align TOP are considered the same). * <p><b>Used By:</b><ul> * <li><code>FormAttachment</code> in a <code>FormLayout</code></li> * </ul></p> */ public static final int TOP = UP; /** * Style constant for align down behavior (value is 1<<10, * since align DOWN and align BOTTOM are considered the same). * <p><b>Used By:</b><ul> * <li><code>Button</code> with <code>ARROW</code> style</li> * <li><code>Tracker</code></li> * </ul></p> */ public static final int DOWN = 1 << 10; /** * Style constant for align bottom behavior (value is 1<<10, * since align DOWN and align BOTTOM are considered the same). * <p><b>Used By:</b><ul> * <li><code>FormAttachment</code> in a <code>FormLayout</code></li> * </ul></p> */ public static final int BOTTOM = DOWN; /** * Style constant for leading alignment (value is 1<<14). * <p><b>Used By:</b><ul> * <li><code>Button</code></li> * <li><code>Label</code></li> * <li><code>TableColumn</code></li> * <li><code>Tracker</code></li> * <li><code>FormAttachment</code> in a <code>FormLayout</code></li> * </ul></p> * * @since 2.1.2 */ public static final int LEAD = 1 << 14; /** * Style constant for align left behavior (value is 1<<14). * This is a synonym for LEAD (value is 1<<14). Newer * applications should use LEAD instead of LEFT to make code more * understandable on right-to-left platforms. */ public static final int LEFT = LEAD; /** * Style constant for trailiing alignment (value is 1<<17). * <p><b>Used By:</b><ul> * <li><code>Button</code></li> * <li><code>Label</code></li> * <li><code>TableColumn</code></li> * <li><code>Tracker</code></li> * <li><code>FormAttachment</code> in a <code>FormLayout</code></li> * </ul></p> * * @since 2.1.2 */ public static final int TRAIL = 1 << 17; /** * Style constant for align right behavior (value is 1<<17). * This is a synonym for TRAIL (value is 1<<14). Newer * applications should use TRAIL instead of RIGHT to make code more * understandable on right-to-left platforms. */ public static final int RIGHT = TRAIL; /** * Style constant for align center behavior (value is 1<<24). * <p><b>Used By:</b><ul> * <li><code>Button</code></li> * <li><code>Label</code></li> * <li><code>TableColumn</code></li> * <li><code>FormAttachment</code> in a <code>FormLayout</code></li> * </ul></p> */ public static final int CENTER = 1 << 24; /** * Style constant for horizontal alignment or orientation behavior (value is 1<<8). * <p><b>Used By:</b><ul> * <li><code>Label</code></li> * <li><code>ProgressBar</code></li> * <li><code>Sash</code></li> * <li><code>Scale</code></li> * <li><code>ScrollBar</code></li> * <li><code>Slider</code></li> * <li><code>ToolBar</code></li> * <li><code>FillLayout</code> type</li> * <li><code>RowLayout</code> type</li> * </ul></p> */ public static final int HORIZONTAL = 1 << 8; /** * Style constant for vertical alignment or orientation behavior (value is 1<<9). * <p><b>Used By:</b><ul> * <li><code>Label</code></li> * <li><code>ProgressBar</code></li> * <li><code>Sash</code></li> * <li><code>Scale</code></li> * <li><code>ScrollBar</code></li> * <li><code>Slider</code></li> * <li><code>ToolBar</code></li> * <li><code>FillLayout</code> type</li> * <li><code>RowLayout</code> type</li> * </ul></p> */ public static final int VERTICAL = 1 << 9; /** * Style constant for vertical alignment or orientation behavior (value is 1). * <p><b>Used By:</b><ul> * <li><code>GridLayout</code> type</li> * </ul></p> */ public static final int BEGINNING = 1; /** * Style constant for vertical alignment or orientation behavior (value is 4). * <p><b>Used By:</b><ul> * <li><code>GridLayout</code> type</li> * </ul></p> */ public static final int FILL = 4; /** * Input Method Editor style constant for double byte * input behavior (value is 1<<1). */ public static final int DBCS = 1 << 1; /** * Input Method Editor style constant for alpha * input behavior (value is 1<<2). */ public static final int ALPHA = 1 << 2; /** * Input Method Editor style constant for native * input behavior (value is 1<<3). */ public static final int NATIVE = 1 << 3;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -