|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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:
| Field Summary | |
(package private) Menu |
activeMenu
|
(package private) int[] |
brushes
|
(package private) static org.eclipse.swt.internal.win32.TCHAR |
DialogClass
|
(package private) static int |
DialogProc
|
(package private) Display |
display
|
(package private) int |
hIMC
|
(package private) Control |
lastActive
|
(package private) int |
lpstrTip
|
(package private) org.eclipse.swt.internal.win32.SHACTIVATEINFO |
psai
|
(package private) boolean |
showWithParent
|
(package private) int |
toolTipHandle
|
| Fields inherited from class org.eclipse.swt.widgets.Decorations |
defaultButton, hAccel, hIcon, ID_START, image, items, menuBar, menus, nAccel, saveDefault, savedFocus, swFlags |
| Fields inherited from class org.eclipse.swt.widgets.Canvas |
caret |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
font, layout, lpwp, tabList |
| Fields inherited from class org.eclipse.swt.widgets.Scrollable |
horizontalBar, verticalBar |
| Fields inherited from class org.eclipse.swt.widgets.Control |
ACCENTS, accessible, background, drawCount, foreground, handle, hCursor, layoutData, menu, parent, toolTipText |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values |
| Constructor Summary | |
|
Shell()
Suppressed: Constructs a new instance of this class. |
|
Shell(Display display)
Enabled: Constructs a new instance of this class given only the display to create it on. |
|
Shell(Display display,
int style)
Enabled: Constructs a new instance of this class given the display to create it on and a style value describing its behavior and appearance. |
(package private) |
Shell(Display display,
Shell parent,
int style,
int handle)
|
|
Shell(int style)
Suppressed: Constructs a new instance of this class given only the style value describing its behavior and appearance. |
|
Shell(Shell parent)
Enabled: Constructs a new instance of this class given only its parent. |
|
Shell(Shell parent,
int style)
Enabled: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Method Summary | |
static void |
activate(Shell dest)
Added: Make dest be the active shell. |
void |
addShellListener(ShellListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when operations are performed on the receiver, by sending the listener one of the messages defined in the ShellListener interface. |
(package private) int |
callWindowProc(int msg,
int wParam,
int lParam)
|
(package private) static int |
checkStyle(int style)
|
void |
close()
Enabled: Requests that the window manager close the receiver in the same way it would be closed when the user clicks on the "close box" or performs some other platform specific key or mouse combination that indicates the window should be removed. |
(package private) void |
createHandle()
|
void |
dispose()
Enabled: |
(package private) int |
findBrush(int pixel)
|
(package private) int |
findCursor()
|
void |
forceActive()
Suppressed: Moves the receiver to the top of the drawing order for the display on which it was created (so that all other shells on that display, which are not the receiver's children will be drawn behind it) and forces the window manager to make the shell active. |
(package private) void |
forceResize()
|
Rectangle |
getBounds()
Enabled: |
Display |
getDisplay()
Suppressed: |
boolean |
getEnabled()
Enabled: |
int |
getImeInputMode()
Suppressed: Returns the receiver's input method editor mode. |
Point |
getLocation()
Enabled: |
Shell |
getShell()
Suppressed: |
Shell[] |
getShells()
Suppressed: Returns an array containing all shells which are descendents of the receiver. |
boolean |
isEnabled()
Enabled: |
void |
open()
Enabled: Moves the receiver to the top of the drawing order for the display on which it was created (so that all other shells on that display, which are not the receiver's children will be drawn behind it), marks it visible, and sets focus to its default button (if it has one) and asks the window manager to make the shell active. |
(package private) void |
releaseShells()
|
(package private) void |
releaseWidget()
|
(package private) void |
remove(Menu menu)
|
void |
removeShellListener(ShellListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when operations are performed on the receiver. |
(package private) org.eclipse.swt.internal.win32.LRESULT |
selectPalette(int hPalette)
|
void |
setActive()
Suppressed: Moves the receiver to the top of the drawing order for the display on which it was created (so that all other shells on that display, which are not the receiver's children will be drawn behind it) and asks the window manager to make the shell active. |
(package private) void |
setActiveControl(Control control)
|
(package private) void |
setBounds(int x,
int y,
int width,
int height,
int flags)
|
void |
setEnabled(boolean enabled)
Enabled: |
void |
setImeInputMode(int mode)
Suppressed: Sets the input method editor mode to the argument which should be the result of bitwise OR'ing together one or more of the following constants defined in class SWT:
NONE, ROMAN, DBCS,
PHONETIC, NATIVE, ALPHA. |
(package private) void |
setItemEnabled(int cmd,
boolean enabled)
|
(package private) void |
setParent()
|
(package private) void |
setToolTipText(int hwnd,
String text)
|
(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)
|
void |
setVisible(boolean visible)
Enabled: |
(package private) boolean |
traverseEscape()
|
(package private) void |
updateModal()
|
(package private) int |
widgetExtStyle()
|
(package private) int |
widgetStyle()
|
static Shell |
win32_new(Display display,
int handle)
Suppressed: Invokes platform specific functionality to allocate a new shell. |
(package private) org.eclipse.swt.internal.win32.TCHAR |
windowClass()
|
(package private) int |
windowProc()
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_ACTIVATE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CLOSE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_COMMAND(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_DESTROY(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOUSEACTIVATE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NCHITTEST(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_PALETTECHANGED(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_QUERYNEWPALETTE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETCURSOR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETTINGCHANGE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SHOWWINDOW(int wParam,
int lParam)
|
| Methods inherited from class org.eclipse.swt.widgets.Decorations |
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 |
| Methods inherited from class org.eclipse.swt.widgets.Canvas |
clearArea, getCaret, scroll, setCaret, setFont |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
_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 |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
createScrollBar, getHorizontalBar, getVerticalBar, WM_HSCROLL, WM_MOUSEWHEEL, WM_VSCROLL, wmScroll |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
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 on
public 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_MODAL
Shell(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 instance
public 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_MODAL| Method Detail |
public 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()
dispose in class WidgetWidget.addDisposeListener(org.eclipse.swt.events.DisposeListener),
Widget.removeDisposeListener(org.eclipse.swt.events.DisposeListener),
Widget.checkWidget()int findBrush(int pixel)
findBrush in class Controlint findCursor()
findCursor in class Controlpublic void forceActive()
Control.moveAbove(org.eclipse.swt.widgets.Control),
Control.setFocus(),
Control.setVisible(boolean),
Display.getActiveShell(),
Decorations.setDefaultButton(org.eclipse.swt.widgets.Button),
open(),
setActive()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()
getShell in class ControlControl.getParent()public Shell[] getShells()
public boolean isEnabled()
isEnabled in class ControlControl.getEnabled()public void open()
Control.moveAbove(org.eclipse.swt.widgets.Control),
Control.setFocus(),
Control.setVisible(boolean),
Display.getActiveShell(),
Decorations.setDefaultButton(org.eclipse.swt.widgets.Button),
setActive(),
forceActive()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()
Control.moveAbove(org.eclipse.swt.widgets.Control),
Control.setFocus(),
Control.setVisible(boolean),
Display.getActiveShell(),
Decorations.setDefaultButton(org.eclipse.swt.widgets.Button),
open(),
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 modeSWT
void setItemEnabled(int cmd,
boolean enabled)
void setParent()
setParent in class Decorations
void 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 Decorations
org.eclipse.swt.internal.win32.LRESULT WM_ACTIVATE(int wParam,
int lParam)
WM_ACTIVATE in class Decorations
org.eclipse.swt.internal.win32.LRESULT WM_CLOSE(int wParam,
int lParam)
WM_CLOSE in class Decorations
org.eclipse.swt.internal.win32.LRESULT WM_COMMAND(int wParam,
int lParam)
WM_COMMAND in class Control
org.eclipse.swt.internal.win32.LRESULT WM_DESTROY(int wParam,
int lParam)
WM_DESTROY in class Control
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEACTIVATE(int wParam,
int lParam)
WM_MOUSEACTIVATE in class Control
org.eclipse.swt.internal.win32.LRESULT WM_NCHITTEST(int wParam,
int lParam)
WM_NCHITTEST in class Control
org.eclipse.swt.internal.win32.LRESULT WM_PALETTECHANGED(int wParam,
int lParam)
WM_PALETTECHANGED in class Control
org.eclipse.swt.internal.win32.LRESULT WM_QUERYNEWPALETTE(int wParam,
int lParam)
WM_QUERYNEWPALETTE in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SETCURSOR(int wParam,
int lParam)
WM_SETCURSOR in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SETTINGCHANGE(int wParam,
int lParam)
WM_SETTINGCHANGE in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SHOWWINDOW(int wParam,
int lParam)
WM_SHOWWINDOW in class Controlpublic static void activate(Shell dest)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||