Instances of this class provide the appearance and
behavior of Shells, but are not top
level shells or dialogs. Class Shell
shares a significant amount of code with this class,
and is a subclass.
IMPORTANT: This class was intended to be abstract and
should never be referenced or instantiated.
Instead, the class Shell should be used.
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.
For example, some window managers only support resizable
windows and will always assume the RESIZE style, even if
it is not set.
Class 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)
IMPORTANT: This class is intended to be subclassed only
within the SWT implementation.
Shells, but are not top level shells or dialogs. ClassShellshares a significant amount of code with this class, and is a subclass.IMPORTANT: This class was intended to be abstract and should never be referenced or instantiated. Instead, the class
Shellshould be used.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
-
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. For example, some window managers only support resizable windows and will always assume the RESIZE style, even if it is not set.RESIZE) until it is no longer maximized.- Styles:
- BORDER, CLOSE, MIN, MAX, NO_TRIM, RESIZE, TITLE, ON_TOP, TOOL
- Events:
- (none)
ClassSWTprovides two "convenience constants" for the most commonly required style combinations:SHELL_TRIMCLOSE | TITLE | MIN | MAX | RESIZE)DIALOG_TRIMTITLE | CLOSE | BORDER)IMPORTANT: This class is intended to be subclassed only within the SWT implementation.