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 Note
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:
RESIZE) until it is
no longer maximized.
SWT provides two "convenience constants"
for the most commonly required style combinations:
SHELL_TRIMCLOSE | TITLE | MIN | MAX | RESIZE)
DIALOG_TRIMTITLE | CLOSE | BORDER)
Important Note
This class is intended to be subclassed only within the SWT implementation.
getMinimized, getMaximized, Shell, SWT, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv Button | |
| pack-priv Image | |
| pack-priv Image[] | |
| pack-priv boolean | |
| pack-priv Menu | |
| pack-priv Menu[] | |
| pack-priv boolean | |
| pack-priv Button | |
| pack-priv Control | |
| pack-priv String | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | Decorations(Composite
a composite control which will be the parent of the new instance (cannot be null) parent, int the style of control to construct style)Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv static int | |
| protected void | checkSubclass()
Checks that this class can be subclassed.
|
| pack-priv int | |
| pack-priv Widget | |
| pack-priv Control | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public Button | Returns: the default button or nullReturns the receiver's default button if one had previously been set, otherwise returns null. |
| public Image | Returns: the imageReturns the receiver's image if it had previously been
set using |
| public Image[] | Returns: the imagesReturns the receiver's images if they had previously been
set using |
| public boolean | Returns: the maximized stateReturns |
| public Menu | Returns: the menu bar or nullReturns the receiver's menu bar if one had previously been set, otherwise returns null. |
| public boolean | Returns: the minimized stateReturns |
| pack-priv String | |
| public String | Returns: the textReturns the receiver's text, which is the string that the window manager will typically display as the receiver's title. |
| public boolean | isReparentable()
Overrides org. true if the underlying operating
system supports this reparenting, otherwise false
|
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Decorations | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| public void | setDefaultButton(Button
the new default button button)If the argument is not null, sets the receiver's default button to the argument, and if the argument is null, sets the receiver's default button to the first button which was set as the receiver's default button (called the saved default button). |
| public void | |
| public void | |
| public void | |
| public void | setMenuBar(Menu
the new menu bar menu)Sets the receiver's menu bar to the argument, which may be null. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean |
| accelGroup | back to summary |
|---|---|
| pack-priv long accelGroup | |
| defaultButton | back to summary |
|---|---|
| pack-priv Button defaultButton | |
| image | back to summary |
|---|---|
| pack-priv Image image | |
| images | back to summary |
|---|---|
| pack-priv Image[] images | |
| maximized | back to summary |
|---|---|
| pack-priv boolean maximized | |
| menuBar | back to summary |
|---|---|
| pack-priv Menu menuBar | |
| menus | back to summary |
|---|---|
| pack-priv Menu[] menus | |
| minimized | back to summary |
|---|---|
| pack-priv boolean minimized | |
| saveDefault | back to summary |
|---|---|
| pack-priv Button saveDefault | |
| savedFocus | back to summary |
|---|---|
| pack-priv Control savedFocus | |
| text | back to summary |
|---|---|
| pack-priv String text | |
| vboxHandle | back to summary |
|---|---|
| pack-priv long vboxHandle | |
| Decorations | back to summary |
|---|---|
| pack-priv Decorations() | |
| Decorations | back to summary |
|---|---|
| public Decorations(Composite 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
| |
| _setImages | back to summary |
|---|---|
| pack-priv void _setImages(Image[] images) | |
| addMenu | back to summary |
|---|---|
| pack-priv void addMenu(Menu menu) | |
| checkStyle | back to summary |
|---|---|
| pack-priv static int checkStyle(int style) | |
| checkSubclass | back to summary |
|---|---|
| protected void checkSubclass() Overrides org. Doc from org. Checks that this class can be subclassed.
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
Important Note By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion. The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
| |
| compare | back to summary |
|---|---|
| pack-priv int compare(ImageData data1, ImageData data2) | |
| computeTabGroup | back to summary |
|---|---|
| pack-priv Widget computeTabGroup() Overrides org.
| |
| computeTabRoot | back to summary |
|---|---|
| pack-priv Control computeTabRoot() Overrides org.
| |
| createAccelGroup | back to summary |
|---|---|
| pack-priv void createAccelGroup() | |
| createWidget | back to summary |
|---|---|
| pack-priv void createWidget(int index) Overrides org.
| |
| destroyAccelGroup | back to summary |
|---|---|
| pack-priv void destroyAccelGroup() | |
| fixAccelGroup | back to summary |
|---|---|
| pack-priv void fixAccelGroup() | |
| fixDecorations | back to summary |
|---|---|
| pack-priv void fixDecorations(Decorations newDecorations, Control control, Menu[] menus) | |
| getDefaultButton | back to summary |
|---|---|
| public Button getDefaultButton() Returns the receiver's default button if one had previously been set, otherwise returns null.
| |
| getImage | back to summary |
|---|---|
| public Image getImage() Returns the receiver's image if it had previously been
set using Note This method will return null if called before
| |
| getImages | back to summary |
|---|---|
| public Image[] getImages() Returns the receiver's images if they had previously been
set using Note This method will return an empty array if called before
| |
| getMaximized | back to summary |
|---|---|
| public boolean getMaximized() Returns
| |
| getMenuBar | back to summary |
|---|---|
| public Menu getMenuBar() Returns the receiver's menu bar if one had previously been set, otherwise returns null.
| |
| getMinimized | back to summary |
|---|---|
| public boolean getMinimized() Returns
| |
| getNameText | back to summary |
|---|---|
| pack-priv String getNameText() Overrides org.
| |
| getText | back to summary |
|---|---|
| public String getText() Returns the receiver's text, which is the string that the window manager will typically display as the receiver's title. If the text has not previously been set, returns an empty string.
| |
| isReparentable | back to summary |
|---|---|
| public boolean isReparentable() Overrides org. Doc from org. Returns
| |
| isTabGroup | back to summary |
|---|---|
| pack-priv boolean isTabGroup() Overrides org.
| |
| isTabItem | back to summary |
|---|---|
| pack-priv boolean isTabItem() Overrides org.
| |
| menuShell | back to summary |
|---|---|
| pack-priv Decorations menuShell() Overrides org.
| |
| releaseChildren | back to summary |
|---|---|
| pack-priv void releaseChildren(boolean destroy) Overrides org.
| |
| releaseHandle | back to summary |
|---|---|
| pack-priv void releaseHandle() Overrides org.
| |
| releaseWidget | back to summary |
|---|---|
| pack-priv void releaseWidget() Overrides org.
| |
| removeMenu | back to summary |
|---|---|
| pack-priv void removeMenu(Menu menu) | |
| reskinChildren | back to summary |
|---|---|
| pack-priv void reskinChildren(int flags) Overrides org.
| |
| restoreFocus | back to summary |
|---|---|
| pack-priv boolean restoreFocus() | |
| setDefaultButton | back to summary |
|---|---|
| public void setDefaultButton(Button button) If the argument is not null, sets the receiver's default button to the argument, and if the argument is null, sets the receiver's default button to the first button which was set as the receiver's default button (called the saved default button). If no default button had previously been set, or the saved default button was disposed, the receiver's default button will be set to null. The default button is the button that is selected when the receiver is active and the user presses ENTER.
| |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) Sets the receiver's image to the argument, which may be null. The image is typically displayed by the window manager when the instance is marked as iconified, and may also be displayed somewhere in the trim when the instance is in normal or maximized states.
| |
| setImages | back to summary |
|---|---|
| public void setImages(Image[] images) Sets the receiver's images to the argument, which may be an empty array. Images are typically displayed by the window manager when the instance is marked as iconified, and may also be displayed somewhere in the trim when the instance is in normal or maximized states. Depending where the icon is displayed, the platform chooses the icon with the "best" attributes. It is expected that the array will contain the same icon rendered at different sizes, with different depth and transparency attributes.
| |
| setMaximized | back to summary |
|---|---|
| public void setMaximized(boolean maximized) Sets the maximized state of the receiver.
If the argument is Note The result of intermixing calls to
| |
| setMenuBar | back to summary |
|---|---|
| public void setMenuBar(Menu menu) Sets the receiver's menu bar to the argument, which may be null.
| |
| setMinimized | back to summary |
|---|---|
| public void setMinimized(boolean minimized) Sets the minimized stated of the receiver.
If the argument is Note The result of intermixing calls to
| |
| setOrientation | back to summary |
|---|---|
| pack-priv void setOrientation(boolean create) Overrides org.
| |
| setSavedFocus | back to summary |
|---|---|
| pack-priv void setSavedFocus(Control control) | |
| setText | back to summary |
|---|---|
| public void setText(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 must not be null. Note If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.
| |
| sort | back to summary |
|---|---|
| pack-priv void sort(Image[] images) | |
| traverseItem | back to summary |
|---|---|
| pack-priv boolean traverseItem(boolean next) Overrides org.
| |
| traverseReturn | back to summary |
|---|---|
| pack-priv boolean traverseReturn() Overrides org.
| |