|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.swt.widgets
Class Shell

java.lang.Objectorg.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
- All Implemented Interfaces:
- org.eclipse.swt.graphics.Drawable
- public class Shell
- extends Decorations
Instances of this class represent the "windows"
which the desktop or "window manager" is managing.
Instances that do not have a parent (that is, they
are built using the constructor, which takes a
Display as the argument) are described
as top level shells. Instances that do have
a parent are described as secondary or
dialog shells.
Instances are always displayed in one of the maximized, minimized or normal states:
-
When an instance is marked as maximized, the
window manager will typically resize it to fill the
entire visible area of the display, and the instance
is usually put in a state where it can not be resized
(even if it has style
RESIZE) until it is no longer maximized. - When an instance is in the normal state (neither maximized or minimized), its appearance is controlled by the style constants which were specified when it was created and the restrictions of the window manager (see below).
- When an instance has been marked as minimized, its contents (client area) will usually not be visible, and depending on the window manager, it may be "iconified" (that is, replaced on the desktop by a small simplified representation of itself), relocated to a distinguished area of the screen, or hidden. Combinations of these changes are also possible.
Note: The styles supported by this class must be treated
as HINTs, since the window manager for the
desktop on which the instance is visible has ultimate
control over the appearance and behavior of decorations
and modality. For example, some window managers only
support resizable windows and will always assume the
RESIZE style, even if it is not set. In addition, if a
modality style is not supported, it is "upgraded" to a
more restrictive modality style that is supported. For
example, if PRIMARY_MODAL is not supported,
it would be upgraded to APPLICATION_MODAL.
- Styles:
- BORDER, CLOSE, MIN, MAX, NO_TRIM, RESIZE, TITLE
- APPLICATION_MODAL, MODELESS, PRIMARY_MODAL, SYSTEM_MODAL
- Events:
- Activate, Close, Deactivate, Deiconify, Iconify
SWT provides two "convenience constants"
for the most commonly required style combinations:
SHELL_TRIM-
the result of combining the constants which are required
to produce a typical application top level shell: (that
is,
CLOSE | TITLE | MIN | MAX | RESIZE) DIALOG_TRIM-
the result of combining the constants which are required
to produce a typical application dialog shell: (that
is,
TITLE | CLOSE | BORDER)
Note: Only one of the styles APPLICATION_MODAL, MODELESS, PRIMARY_MODAL and SYSTEM_MODAL may be specified.
IMPORTANT: This class is not intended to be subclassed.
| Field Summary | |
(package private) boolean |
hasFocus
|
(package private) Control |
lastActive
|
(package private) boolean |
mapped
|
(package private) int |
oldHeight
|
(package private) int |
oldWidth
|
(package private) int |
oldX
|
(package private) int |
oldY
|
(package private) org.eclipse.swt.graphics.Region |
region
|
(package private) long |
shellHandle
|
(package private) long |
tooltipsHandle
|
| Fields inherited from class org.eclipse.swt.widgets.Decorations |
accelGroup, defaultButton, image, images, maximized, menuBar, menus, minimized, saveDefault, savedFocus, text |
| Fields inherited from class org.eclipse.swt.widgets.Canvas |
caret |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
embeddedHandle, imHandle, layout, socketHandle, tabList |
| Fields inherited from class org.eclipse.swt.widgets.Scrollable |
horizontalBar, scrolledHandle, verticalBar |
| Fields inherited from class org.eclipse.swt.widgets.Control |
accessible, cursor, drawCount, enableWindow, fixedHandle, font, layoutData, menu, parent, redrawWindow, toolTipText |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
ACTIVATE, BUTTON_PRESS_EVENT, BUTTON_RELEASE_EVENT, CANVAS, CHANGED, CLICKED, COMMIT, CONFIGURE_EVENT, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DELETE_EVENT, DELETE_RANGE, DELETE_TEXT, DISABLED, display, DISPOSED, ENTER_NOTIFY_EVENT, EVENT, EVENT_AFTER, eventTable, EXPOSE_EVENT, FOCUS, FOCUS_IN_EVENT, FOCUS_OUT_EVENT, handle, HANDLE, HIDE, INSERT_TEXT, KEY_PRESS_EVENT, KEY_RELEASE_EVENT, KEYED_DATA, LEAVE_NOTIFY_EVENT, MAP_EVENT, MENU, MNEMONIC_ACTIVATE, MOTION_NOTIFY_EVENT, OBSCURED, POPUP_MENU, PREEDIT_CHANGED, REALIZE, ROW_ACTIVATED, SCROLL_CHILD, SELECT, SHOW, SHOW_HELP, SIZE_ALLOCATE, state, style, STYLE_SET, SWITCH_PAGE, TEST_COLLAPSE_ROW, TEST_EXPAND_ROW, TOGGLED, UNMAP_EVENT, UNREALIZE, VALUE_CHANGED, VISIBILITY_NOTIFY_EVENT, WINDOW_STATE_EVENT |
| Constructor Summary | |
|
Shell()
Constructs a new instance of this class. |
|
Shell(Display display)
Constructs a new instance of this class given only the display to create it on. |
|
Shell(Display display,
int style)
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,
long handle)
|
|
Shell(int style)
Constructs a new instance of this class given only the style value describing its behavior and appearance. |
|
Shell(Shell parent)
Constructs a new instance of this class given only its parent. |
|
Shell(Shell parent,
int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Method Summary | |
(package private) Shell |
_getShell()
|
void |
addShellListener(org.eclipse.swt.events.ShellListener listener)
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) void |
adjustTrim()
|
(package private) void |
bringToTop(boolean force)
|
(package private) static int |
checkStyle(int style)
|
void |
close()
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 |
closeWidget()
|
org.eclipse.swt.graphics.Rectangle |
computeTrim(int x,
int y,
int width,
int height)
Given a desired client area for the receiver (as described by the arguments), returns the bounding rectangle which would be required to produce that client area. |
(package private) void |
createHandle(int index)
|
(package private) void |
deregister()
|
void |
dispose()
Disposes of the operating system resources associated with the receiver and all its descendents. |
(package private) long |
filterProc(long xEvent,
long gdkEvent,
long data)
|
(package private) void |
fixShell(Shell newShell,
Control control)
|
void |
forceActive()
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. |
org.eclipse.swt.graphics.Rectangle |
getBounds()
Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null), unless the receiver is a shell. |
int |
getImeInputMode()
Returns the receiver's input method editor mode. |
org.eclipse.swt.graphics.Point |
getLocation()
Returns a point describing the receiver's location relative to its parent (or its display if its parent is null), unless the receiver is a shell. |
org.eclipse.swt.graphics.Region |
getRegion()
Returns the region that defines the shape of the shell, or null if the shell has the default shape. |
Shell[] |
getShells()
Returns an array containing all shells which are descendents of the receiver. |
org.eclipse.swt.graphics.Point |
getSize()
Returns a point describing the receiver's size. |
(package private) long |
gtk_configure_event(long widget,
long event)
|
(package private) long |
gtk_delete_event(long widget,
long event)
|
(package private) long |
gtk_enter_notify_event(long widget,
long event)
|
(package private) long |
gtk_focus_in_event(long widget,
long event)
|
(package private) long |
gtk_focus_out_event(long widget,
long event)
|
(package private) long |
gtk_focus(long widget,
long directionType)
|
(package private) long |
gtk_map_event(long widget,
long event)
|
static Shell |
gtk_new(Display display,
long handle)
|
(package private) long |
gtk_size_allocate(long widget,
long allocation)
|
(package private) long |
gtk_unmap_event(long widget,
long event)
|
(package private) long |
gtk_window_state_event(long widget,
long event)
|
(package private) boolean |
hasBorder()
|
(package private) void |
hookEvents()
|
boolean |
isEnabled()
Returns true if the receiver is enabled and all
of the receiver's ancestors are enabled, and false
otherwise. |
boolean |
isVisible()
Returns true if the receiver is visible and all
of the receiver's ancestors are visible and false
otherwise. |
void |
open()
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, sets the focus and asks the window manager to make the shell active. |
(package private) void |
register()
|
(package private) void |
releaseChild()
|
(package private) void |
releaseHandle()
|
(package private) void |
releaseShells()
|
(package private) void |
releaseWidget()
|
void |
removeShellListener(org.eclipse.swt.events.ShellListener listener)
Removes the listener from the collection of listeners who will be notified when operations are performed on the receiver. |
(package private) void |
resizeBounds(int width,
int height,
boolean notify)
|
void |
setActive()
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) boolean |
setBounds(int x,
int y,
int width,
int height,
boolean move,
boolean resize)
|
(package private) void |
setCursor(long cursor)
|
void |
setEnabled(boolean enabled)
Enables the receiver if the argument is true,
and disables it otherwise. |
void |
setImeInputMode(int mode)
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 |
setInitialSize()
|
void |
setMaximized(boolean maximized)
Sets the maximized state of the receiver. |
void |
setMenuBar(Menu menu)
Sets the receiver's menu bar to the argument, which may be null. |
void |
setMinimized(boolean minimized)
Sets the minimized stated of the receiver. |
void |
setRegion(org.eclipse.swt.graphics.Region region)
Sets the shape of the shell to the region specified by the argument. |
void |
setText(java.lang.String string)
Sets the receiver's text, which is the string that the window manager will typically display as the receiver's title, to the argument, which may not be null. |
(package private) void |
setToolTipText(long widget,
java.lang.String string)
|
void |
setVisible(boolean visible)
Marks the receiver as visible if the argument is true,
and marks it invisible otherwise. |
(package private) void |
setZOrder(Control sibling,
boolean above)
|
(package private) long |
shellMapProc(long handle,
long arg0,
long user_data)
|
(package private) long |
topHandle()
|
(package private) boolean |
traverseEscape()
|
(package private) int |
trimHeight()
|
(package private) int |
trimWidth()
|
| Methods inherited from class org.eclipse.swt.widgets.Decorations |
_setImages, add, computeTabGroup, computeTabRoot, createAccelGroup, createWidget, destroyAccelGroup, fixAccelGroup, fixDecorations, getDefaultButton, getImage, getImages, getMaximized, getMenuBar, getMinimized, getNameText, getText, isReparentable, isTabGroup, isTabItem, menuShell, remove, restoreFocus, setDefaultButton, setImage, setImages, setSavedFocus, traverseItem, traverseReturn |
| Methods inherited from class org.eclipse.swt.widgets.Canvas |
getCaret, getIMCaretPos, gtk_expose_event, redrawWidget, scroll, setCaret, setFont, updateCaret |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
_getChildren, _getTabList, checkSubclass, computeSize, computeTabList, createHandle, enableWidget, findMenus, fixChildren, fixTabList, focusHandle, forceFocus, getChildren, getChildrenCount, getLayout, getTabList, gtk_button_press_event, gtk_key_press_event, gtk_realize, gtk_scroll_child, gtk_style_set, hooksKeys, imHandle, layout, layout, minimumSize, moveAbove, moveBelow, parentingHandle, releaseChildren, removeControl, resizeHandle, setFocus, setLayout, setTabGroupFocus, setTabItemFocus, setTabList, translateMnemonic, translateTraversal, traversalCode |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
clientHandle, createScrollBar, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar, hScrollBarWidth, setOrientation, vScrollBarWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
shellHandle
long shellHandle
tooltipsHandle
long tooltipsHandle
hasFocus
boolean hasFocus
mapped
boolean mapped
oldX
int oldX
oldY
int oldY
oldWidth
int oldWidth
oldHeight
int oldHeight
lastActive
Control lastActive
region
org.eclipse.swt.graphics.Region region
| Constructor Detail |
Shell
public Shell()
- Constructs a new instance of this class. This is equivalent
to calling
Shell((Display) null).
Shell
public Shell(int style)
- Constructs a new instance of this class given only the style
value describing its behavior and appearance. This is equivalent
to calling
Shell((Display) null, style).The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
Shell
public Shell(Display display)
- Constructs a new instance of this class given only the display
to create it on. It is created with style
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.
Shell
public Shell(Display display, int style)
- Constructs a new instance of this class given the display
to create it on and a style value describing its behavior
and appearance.
The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle 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.
Shell
Shell(Display display, Shell parent, int style, long handle)
Shell
public Shell(Shell parent)
- Constructs a new instance of this class given only its
parent. It is created with style
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.
Shell
public Shell(Shell parent, int style)
- Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle 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.
| Method Detail |
gtk_new
public static Shell gtk_new(Display display, long handle)
checkStyle
static int checkStyle(int style)
addShellListener
public void addShellListener(org.eclipse.swt.events.ShellListener listener)
- 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
ShellListenerinterface.
adjustTrim
void adjustTrim()
bringToTop
void bringToTop(boolean force)
close
public void close()
- 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.
closeWidget
void closeWidget()
computeTrim
public org.eclipse.swt.graphics.Rectangle computeTrim(int x, int y, int width, int height)
- Description copied from class:
Scrollable - Given a desired client area for the receiver
(as described by the arguments), returns the bounding
rectangle which would be required to produce that client
area.
In other words, it returns a rectangle such that, if the receiver's bounds were set to that rectangle, the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings") would be the rectangle described by the arguments (relative to the receiver's parent).
- Overrides:
computeTrimin classScrollable
createHandle
void createHandle(int index)
- Overrides:
createHandlein classComposite
hasBorder
boolean hasBorder()
hookEvents
void hookEvents()
- Overrides:
hookEventsin classComposite
isEnabled
public boolean isEnabled()
- Description copied from class:
Control - Returns
trueif the receiver is enabled and all of the receiver's ancestors are enabled, andfalseotherwise. A disabled control is typically not selectable from the user interface and draws with an inactive or "grayed" look.
isVisible
public boolean isVisible()
- Description copied from class:
Control - Returns
trueif the receiver is visible and all of the receiver's ancestors are visible andfalseotherwise.
register
void register()
releaseChild
void releaseChild()
- Overrides:
releaseChildin classControl
topHandle
long topHandle()
- Overrides:
topHandlein classScrollable
filterProc
long filterProc(long xEvent,
long gdkEvent,
long data)
- Overrides:
filterProcin classWidget
fixShell
void fixShell(Shell newShell, Control control)
getLocation
public org.eclipse.swt.graphics.Point getLocation()
- Description copied from class:
Control - Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
- Overrides:
getLocationin classControl
getSize
public org.eclipse.swt.graphics.Point getSize()
- Description copied from class:
Control - Returns a point describing the receiver's size. The
x coordinate of the result is the width of the receiver.
The y coordinate of the result is the height of the
receiver.
getRegion
public org.eclipse.swt.graphics.Region getRegion()
- Returns the region that defines the shape of the shell,
or null if the shell has the default shape.
- Since:
- 3.0
getImeInputMode
public int getImeInputMode()
- Returns the receiver's input method editor mode. This
will 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.
_getShell
Shell _getShell()
getShells
public Shell[] getShells()
- Returns an array containing all shells which are
descendents of the receiver.
gtk_configure_event
long gtk_configure_event(long widget,
long event)
- Overrides:
gtk_configure_eventin classWidget
gtk_delete_event
long gtk_delete_event(long widget,
long event)
- Overrides:
gtk_delete_eventin classWidget
gtk_enter_notify_event
long gtk_enter_notify_event(long widget,
long event)
- Overrides:
gtk_enter_notify_eventin classControl
gtk_focus
long gtk_focus(long widget,
long directionType)
gtk_focus_in_event
long gtk_focus_in_event(long widget,
long event)
- Overrides:
gtk_focus_in_eventin classCanvas
gtk_focus_out_event
long gtk_focus_out_event(long widget,
long event)
- Overrides:
gtk_focus_out_eventin classCanvas
gtk_map_event
long gtk_map_event(long widget,
long event)
- Overrides:
gtk_map_eventin classWidget
gtk_size_allocate
long gtk_size_allocate(long widget,
long allocation)
- Overrides:
gtk_size_allocatein classWidget
gtk_unmap_event
long gtk_unmap_event(long widget,
long event)
- Overrides:
gtk_unmap_eventin classWidget
gtk_window_state_event
long gtk_window_state_event(long widget,
long event)
- Overrides:
gtk_window_state_eventin classWidget
open
public void open()
- 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,
sets the focus and asks the window manager to make the
shell active.
removeShellListener
public void removeShellListener(org.eclipse.swt.events.ShellListener listener)
- Removes the listener from the collection of listeners who will
be notified when operations are performed on the receiver.
setActive
public void setActive()
- 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.
- Since:
- 2.0
setActiveControl
void setActiveControl(Control control)
resizeBounds
void resizeBounds(int width,
int height,
boolean notify)
setBounds
boolean setBounds(int x,
int y,
int width,
int height,
boolean move,
boolean resize)
setCursor
void setCursor(long cursor)
setEnabled
public void setEnabled(boolean enabled)
- Description copied from class:
Control - Enables the receiver if the argument is
true, and disables it otherwise. A disabled control is typically not selectable from the user interface and draws with an inactive or "grayed" look.- Overrides:
setEnabledin classControl
setImeInputMode
public void setImeInputMode(int mode)
- 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.
setInitialSize
void setInitialSize()
- Overrides:
setInitialSizein classControl
setMaximized
public void setMaximized(boolean maximized)
- Description copied from class:
Decorations - Sets the maximized state of the receiver.
If the argument is
truecauses the receiver to switch to the maximized state, and if the argument isfalseand the receiver was previously maximized, causes the receiver to switch back to either the minimized or normal states.Note: The result of intermixing calls to
setMaximized(true)andsetMinimized(true)will vary by platform. Typically, the behavior will match the platform user's expectations, but not always. This should be avoided if possible.- Overrides:
setMaximizedin classDecorations
setMenuBar
public void setMenuBar(Menu menu)
- Description copied from class:
Decorations - Sets the receiver's menu bar to the argument, which
may be null.
- Overrides:
setMenuBarin classDecorations
setMinimized
public void setMinimized(boolean minimized)
- Description copied from class:
Decorations - Sets the minimized stated of the receiver.
If the argument is
truecauses the receiver to switch to the minimized state, and if the argument isfalseand the receiver was previously minimized, causes the receiver to switch back to either the maximized or normal states.Note: The result of intermixing calls to
setMaximized(true)andsetMinimized(true)will vary by platform. Typically, the behavior will match the platform user's expectations, but not always. This should be avoided if possible.- Overrides:
setMinimizedin classDecorations
setRegion
public void setRegion(org.eclipse.swt.graphics.Region region)
- Sets the shape of the shell to the region specified
by the argument. When the argument is null, the
default shape of the shell is restored. The shell
must be created with the style SWT.NO_TRIM in order
to specify a region.
- Since:
- 3.0
setText
public void setText(java.lang.String string)
- Description copied from class:
Decorations - Sets the receiver's text, which is the string that the
window manager will typically display as the receiver's
title, to the argument, which may not be null.
- Overrides:
setTextin classDecorations
setVisible
public void setVisible(boolean visible)
- Description copied from class:
Control - Marks the receiver as visible if the argument is
true, and marks it invisible otherwise.If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.
- Overrides:
setVisiblein classControl
setZOrder
void setZOrder(Control sibling, boolean above)
shellMapProc
long shellMapProc(long handle,
long arg0,
long user_data)
- Overrides:
shellMapProcin classWidget
traverseEscape
boolean traverseEscape()
- Overrides:
traverseEscapein classControl
trimHeight
int trimHeight()
trimWidth
int trimWidth()
deregister
void deregister()
- Overrides:
deregisterin classComposite
dispose
public void dispose()
- Description copied from class:
Widget - Disposes of the operating system resources associated with
the receiver and all its descendents. After this method has
been invoked, the receiver and all descendents will answer
truewhen sent the messageisDisposed(). Any internal connections between the widgets in the tree will have been removed to facilitate garbage collection.NOTE: This method is not called recursively on the descendents of the receiver. This means that, widget implementers can not detect when a widget is being disposed of by re-implementing this method, but should instead listen for the
Disposeevent.
forceActive
public void forceActive()
- 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.
- Since:
- 2.0
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()
- Description copied from class:
Control - Returns a rectangle describing the receiver's size and location
relative to its parent (or its display if its parent is null),
unless the receiver is a shell. In this case, the location is
relative to the display.
releaseHandle
void releaseHandle()
- Overrides:
releaseHandlein classScrollable
releaseShells
void releaseShells()
releaseWidget
void releaseWidget()
- Overrides:
releaseWidgetin classDecorations
setToolTipText
void setToolTipText(long widget,
java.lang.String string)
| |||||
JAVADOC