java.lang.Object | +--org.eclipse.swt.widgets.Widget | +--org.eclipse.swt.widgets.Control | +--org.eclipse.swt.widgets.Scrollable | +--org.eclipse.swt.widgets.Composite | +--org.eclipse.swt.widgets.Canvas | +--org.eclipse.swt.widgets.Decorations | +--org.eclipse.swt.widgets.Shell
Unsafe:
defaultButton, hAccel, hIcon, ID_START, image, items, menuBar, menus, nAccel, saveDefault, savedFocus, swFlags
ACCENTS, accessible, background, drawCount, foreground, handle, hCursor, layoutData, menu, parent, toolTipText
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values
Shell()
Shell(Display display)
Shell(Display display,
int style)
Shell(int style)
Shell(Shell parent,
int style)
void
addShellListener(ShellListener listener)
ShellListener interface.
void
close()
void
forceActive()
Shell[]
getShells()
void
open()
void
removeShellListener(ShellListener listener)
void
setActive()
void
setImeInputMode(int mode)
SWT:
NONE, ROMAN, DBCS,
PHONETIC, NATIVE, ALPHA.
(package private) void
setToolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO lpnmtdi,
byte[] buffer)
(package private) void
setToolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO lpnmtdi,
char[] buffer)
static Shell
win32_new(Display display,
int handle)
add, add, bringToTop, checkSubclass, computeTabGroup, computeTabRoot, computeTrim, createAccelerators, createWidget, destroyAccelerators, findMenu, findMenuItem, getClientArea, getDefaultButton, getImage, getMaximized, getMenuBar, getMinimized, getNameText, getSize, getText, isTabGroup, isTabItem, menuShell, remove, restoreFocus, saveFocus, setDefaultButton, setDefaultButton, setFocus, setImage, setMaximized, setMenuBar, setMinimized, setPlacement, setSavedFocus, setSystemMenu, setText, translateAccelerator, traverseItem, traverseReturn, windowProc, WM_HOTKEY, WM_KILLFOCUS, WM_NCACTIVATE, WM_QUERYOPEN, WM_SETFOCUS, WM_SIZE, WM_WINDOWPOSCHANGING
_getChildren, _getTabList, computeSize, computeTabList, getChildren, getChildrenCount, getLayout, getTabList, hooksKeys, layout, layout, minimumSize, moveAbove, moveBelow, releaseChildren, resizeChildren, resizeChildren, setLayout, setResizeChildren, setTabGroupFocus, setTabItemFocus, setTabList, toolTipText, translateMnemonic, updateFont, WM_ERASEBKGND, WM_GETDLGCODE, WM_GETFONT, WM_LBUTTONDOWN, WM_NOTIFY, WM_PAINT, WM_SETFONT, WM_SYSCOLORCHANGE, WM_SYSCOMMAND
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, checkOrientation, computeSize, defaultBackground, defaultFont, defaultForeground, deregister, destroyWidget, drawBackground, drawBackground, findMnemonic, fixFocus, forceFocus, getAccessible, getBackground, getBackgroundPixel, getBorderWidth, getCodePage, getFont, getForeground, getForegroundPixel, getLayoutData, getMenu, getParent, getPath, getToolTipText, getVisible, hasCursor, hasFocus, internal_dispose_GC, internal_new_GC, isActive, isDisposed, isFocusAncestor, isFocusControl, isReparentable, isShowing, isVisible, mnemonicHit, mnemonicMatch, moveAbove, moveBelow, new_Accessible, pack, pack, redraw, redraw, register, releaseHandle, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, sendKeyEvent, sendKeyEvent, sendMouseEvent, sendMouseEvent, setBackground, setBackgroundPixel, setBounds, setBounds, setCapture, setCursor, setDefaultFont, setForeground, setForegroundPixel, setLayoutData, setLocation, setLocation, setMenu, setParent, setRadioFocus, setRadioSelection, setRedraw, setSavedFocus, setSize, setSize, setToolTipText, sort, subclass, toControl, toControl, toDisplay, toDisplay, transferActive, transferFocus, translateMnemonic, translateTraversal, traverse, traverse, traverseGroup, traverseMnemonic, traversePage, unsubclass, update, update, WM_CHAR, WM_CLEAR, WM_CONTEXTMENU, WM_CTLCOLOR, WM_CUT, WM_DRAWITEM, WM_ENDSESSION, WM_GETOBJECT, WM_HELP, WM_IME_CHAR, WM_IME_COMPOSITION, WM_INITMENUPOPUP, WM_KEYDOWN, WM_KEYUP, WM_LBUTTONDBLCLK, WM_LBUTTONUP, WM_MBUTTONDBLCLK, WM_MBUTTONDOWN, WM_MBUTTONUP, WM_MEASUREITEM, WM_MENUCHAR, WM_MENUSELECT, WM_MOUSEHOVER, WM_MOUSELEAVE, WM_MOUSEMOVE, WM_MOVE, WM_NCCALCSIZE, WM_PASTE, WM_PRINTCLIENT, WM_QUERYENDSESSION, WM_RBUTTONDBLCLK, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_SETREDRAW, WM_SYSCHAR, WM_SYSKEYDOWN, WM_SYSKEYUP, WM_TIMER, WM_UNDO, wmColorChild, wmCommandChild, wmDrawChild, wmMeasureChild, wmNotifyChild, wmScrollChild
addDisposeListener, addListener, checkBits, checkParent, checkWidget, error, filters, getData, getData, getName, getStyle, hooks, isListening, isValidSubclass, isValidThread, mbcsToWcs, mbcsToWcs, notifyListeners, postEvent, postEvent, releaseChild, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, toString, wcsToMbcs, wcsToMbcs
Display display
Menu activeMenu
int hIMC
int[] brushes
boolean showWithParent
int toolTipHandle
int lpstrTip
Control lastActive
org.eclipse.swt.internal.win32.SHACTIVATEINFO psai
static final int DialogProc
static final org.eclipse.swt.internal.win32.TCHAR DialogClass
public Shell()
Shell((Display) null).
public Shell(int style)
Shell((Display) null, style).
The style value is either one of the style constants defined in
class SWT which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those SWT style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
style - the style of control to constructSWT.BORDER,
SWT.CLOSE,
SWT.MIN,
SWT.MAX,
SWT.RESIZE,
SWT.TITLE,
SWT.NO_TRIM,
SWT.SHELL_TRIM,
SWT.DIALOG_TRIM,
SWT.MODELESS,
SWT.PRIMARY_MODAL,
SWT.APPLICATION_MODAL,
SWT.SYSTEM_MODALpublic Shell(Display display)
SWT.SHELL_TRIM.
Note: Currently, null can be passed in for the display argument. This has the effect of creating the shell on the currently active display if there is one. If there is no current display, the shell is created on a "default" display. Passing in null as the display argument is not considered to be good coding style, and may not be supported in a future release of SWT.
display - the display to create the shell onpublic Shell(Display display, int style)
The style value is either one of the style constants defined in
class SWT which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those SWT style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
Note: Currently, null can be passed in for the display argument. This has the effect of creating the shell on the currently active display if there is one. If there is no current display, the shell is created on a "default" display. Passing in null as the display argument is not considered to be good coding style, and may not be supported in a future release of SWT.
display - the display to create the shell onstyle - the style of control to constructSWT.BORDER,
SWT.CLOSE,
SWT.MIN,
SWT.MAX,
SWT.RESIZE,
SWT.TITLE,
SWT.NO_TRIM,
SWT.SHELL_TRIM,
SWT.DIALOG_TRIM,
SWT.MODELESS,
SWT.PRIMARY_MODAL,
SWT.APPLICATION_MODAL,
SWT.SYSTEM_MODALShell(Display display, Shell parent, int style, int handle)
public Shell(Shell parent)
SWT.DIALOG_TRIM.
Note: Currently, null can be passed in for the parent. This has the effect of creating the shell on the currently active display if there is one. If there is no current display, the shell is created on a "default" display. Passing in null as the parent is not considered to be good coding style, and may not be supported in a future release of SWT.
parent - a shell which will be the parent of the new instancepublic Shell(Shell parent, int style)
The style value is either one of the style constants defined in
class SWT which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those SWT style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
Note: Currently, null can be passed in for the parent. This has the effect of creating the shell on the currently active display if there is one. If there is no current display, the shell is created on a "default" display. Passing in null as the parent is not considered to be good coding style, and may not be supported in a future release of SWT.
parent - a shell which will be the parent of the new instancestyle - the style of control to constructSWT.BORDER,
SWT.CLOSE,
SWT.MIN,
SWT.MAX,
SWT.RESIZE,
SWT.TITLE,
SWT.NO_TRIM,
SWT.SHELL_TRIM,
SWT.DIALOG_TRIM,
SWT.MODELESS,
SWT.PRIMARY_MODAL,
SWT.APPLICATION_MODAL,
SWT.SYSTEM_MODALpublic static Shell win32_new(Display display, int handle)
IMPORTANT: This method is not part of the public
API for Shell. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
display - the display for the shellhandle - the handle for the shellstatic int checkStyle(int style)
public void addShellListener(ShellListener listener)
ShellListener interface.
listener - the listener which should be notifiedShellListener,
removeShellListener(org.eclipse.swt.events.ShellListener)int callWindowProc(int msg, int wParam, int lParam)
callWindowProc in class Scrollablepublic void close()
dispose()void createHandle()
createHandle in class Decorationspublic void dispose()
int findBrush(int pixel)
int findCursor()
findCursor in class Controlpublic void forceActive()
void forceResize()
forceResize in class Controlpublic Rectangle getBounds()
getBounds in class Decorationspublic Display getDisplay()
getDisplay in class Controlpublic boolean getEnabled()
getEnabled in class ControlControl.isEnabled()public int getImeInputMode()
SWT:
NONE, ROMAN, DBCS,
PHONETIC, NATIVE, ALPHA.
SWTpublic Point getLocation()
getLocation in class Decorationspublic Shell getShell()
Control.getParent()public Shell[] getShells()
public boolean isEnabled()
Control.getEnabled()public void open()
void releaseShells()
void releaseWidget()
releaseWidget in class Decorationsvoid remove(Menu menu)
remove in class Decorationspublic void removeShellListener(ShellListener listener)
listener - the listener which should no longer be notifiedShellListener,
addShellListener(org.eclipse.swt.events.ShellListener)org.eclipse.swt.internal.win32.LRESULT selectPalette(int hPalette)
public void setActive()
void setActiveControl(Control control)
void setBounds(int x, int y, int width, int height, int flags)
setBounds in class Decorationspublic void setEnabled(boolean enabled)
setEnabled in class Controlenabled - the new enabled statepublic void setImeInputMode(int mode)
SWT:
NONE, ROMAN, DBCS,
PHONETIC, NATIVE, ALPHA.
mode - the new IME modeSWTvoid setItemEnabled(int cmd, boolean enabled)
void setParent()
setParent in class Decorationsvoid setToolTipText(int hwnd, String text)
void setToolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO lpnmtdi, byte[] buffer)
void setToolTipText(org.eclipse.swt.internal.win32.NMTTDISPINFO lpnmtdi, char[] buffer)
public void setVisible(boolean visible)
setVisible in class Decorationsvisible - the new visibility stateboolean traverseEscape()
traverseEscape in class Controlvoid updateModal()
int widgetExtStyle()
widgetExtStyle in class Decorationsorg.eclipse.swt.internal.win32.TCHAR windowClass()
windowClass in class Scrollableint windowProc()
windowProc in class Scrollableint widgetStyle()
widgetStyle in class Decorationsorg.eclipse.swt.internal.win32.LRESULT WM_ACTIVATE(int wParam, int lParam)
WM_ACTIVATE in class Decorationsorg.eclipse.swt.internal.win32.LRESULT WM_CLOSE(int wParam, int lParam)
WM_CLOSE in class Decorationsorg.eclipse.swt.internal.win32.LRESULT WM_COMMAND(int wParam, int lParam)
WM_COMMAND in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_DESTROY(int wParam, int lParam)
WM_DESTROY in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_MOUSEACTIVATE(int wParam, int lParam)
WM_MOUSEACTIVATE in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_NCHITTEST(int wParam, int lParam)
WM_NCHITTEST in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_PALETTECHANGED(int wParam, int lParam)
WM_PALETTECHANGED in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_QUERYNEWPALETTE(int wParam, int lParam)
WM_QUERYNEWPALETTE in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_SETCURSOR(int wParam, int lParam)
WM_SETCURSOR in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_SETTINGCHANGE(int wParam, int lParam)
WM_SETTINGCHANGE in class Controlorg.eclipse.swt.internal.win32.LRESULT WM_SHOWWINDOW(int wParam, int lParam)
WM_SHOWWINDOW in class Controlpublic static void activate(Shell dest)