Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.widgets
Class Shell  view Shell download Shell.java

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended byorg.eclipse.swt.widgets.Canvas
                      extended byorg.eclipse.swt.widgets.Decorations
                          extended byorg.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:

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
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)

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 org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeNativeSize, computeSize, defaultFont, drawGripper, eventHandle, filterKey, fixFocus, fontHandle, forceFocus, getAccessible, getBackground, getBackgroundColor, getBaseColor, getBgColor, getEnabled, getFgColor, getFont, getFontDescription, getForeground, getForegroundColor, getLayoutData, getMenu, getMonitor, getParent, getPath, getShell, getTextColor, getToolTipText, getVisible, gtk_button_release_event, gtk_commit, gtk_event_after, gtk_key_release_event, gtk_leave_notify_event, gtk_mnemonic_activate, gtk_motion_notify_event, gtk_popup_menu, gtk_preedit_changed, gtk_show_help, gtk_unrealize, gtk_visibility_notify_event, hasFocus, hoverProc, internal_dispose_GC, internal_new_GC, isFocusAncestor, isFocusControl, isShowing, mnemonicHit, mnemonicMatch, moveAbove, moveBelow, moveHandle, pack, pack, paintHandle, paintWindow, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, sendFocusEvent, sendHelpEvent, sendIMKeyEvent, sendKeyEvent, sendMouseEvent, setBackground, setBackgroundColor, setBackgroundColor, setBounds, setBounds, setCapture, setCursor, setFontDescription, setForeground, setForegroundColor, setLayoutData, setLocation, setLocation, setMenu, setParent, setRadioSelection, setRedraw, setSize, setSize, setToolTipText, setZOrder, showMenu, sort, toControl, toControl, toDisplay, toDisplay, translateMnemonic, traverse, traverse, traverseGroup, traverseMnemonic, traversePage, update, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkBits, checkOrientation, checkParent, checkWidget, destroyWidget, error, filters, fixMnemonic, fontHeight, getData, getData, getDisplay, getName, getStyle, gtk_activate, gtk_changed, gtk_clicked, gtk_delete_range, gtk_delete_text, gtk_event, gtk_hide, gtk_insert_text, gtk_row_activated, gtk_select, gtk_show, gtk_switch_page, gtk_test_collapse_row, gtk_test_expand_row, gtk_timer, gtk_toggled, gtk_value_changed, hooks, isDisposed, isListening, isValidSubclass, isValidThread, isValidWidget, menuPositionProc, mnemonicHit, mnemonicMatch, notifyListeners, pixbufCellDataProc, postEvent, postEvent, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, textCellDataProc, timerProc, toString, translateTraversal, treeSelectionProc, windowProc, windowProc, windowProc, windowProc
 
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 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.


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 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.


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 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.

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 ShellListener interface.


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:
computeTrim in class Scrollable

createHandle

void createHandle(int index)
Overrides:
createHandle in class Composite

hasBorder

boolean hasBorder()
Overrides:
hasBorder in class Composite

hookEvents

void hookEvents()
Overrides:
hookEvents in class Composite

isEnabled

public boolean isEnabled()
Description copied from class: Control
Returns true if the receiver is enabled and all of the receiver's ancestors are enabled, and false otherwise. A disabled control is typically not selectable from the user interface and draws with an inactive or "grayed" look.

Overrides:
isEnabled in class Control

isVisible

public boolean isVisible()
Description copied from class: Control
Returns true if the receiver is visible and all of the receiver's ancestors are visible and false otherwise.

Overrides:
isVisible in class Control

register

void register()
Overrides:
register in class Composite

releaseChild

void releaseChild()
Overrides:
releaseChild in class Control

topHandle

long topHandle()
Overrides:
topHandle in class Scrollable

filterProc

long filterProc(long xEvent,
                long gdkEvent,
                long data)
Overrides:
filterProc in class Widget

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:
getLocation in class Control

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.

Overrides:
getSize in class Control

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()
Overrides:
_getShell in class Control

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_event in class Widget

gtk_delete_event

long gtk_delete_event(long widget,
                      long event)
Overrides:
gtk_delete_event in class Widget

gtk_enter_notify_event

long gtk_enter_notify_event(long widget,
                            long event)
Overrides:
gtk_enter_notify_event in class Control

gtk_focus

long gtk_focus(long widget,
               long directionType)
Overrides:
gtk_focus in class Composite

gtk_focus_in_event

long gtk_focus_in_event(long widget,
                        long event)
Overrides:
gtk_focus_in_event in class Canvas

gtk_focus_out_event

long gtk_focus_out_event(long widget,
                         long event)
Overrides:
gtk_focus_out_event in class Canvas

gtk_map_event

long gtk_map_event(long widget,
                   long event)
Overrides:
gtk_map_event in class Widget

gtk_size_allocate

long gtk_size_allocate(long widget,
                       long allocation)
Overrides:
gtk_size_allocate in class Widget

gtk_unmap_event

long gtk_unmap_event(long widget,
                     long event)
Overrides:
gtk_unmap_event in class Widget

gtk_window_state_event

long gtk_window_state_event(long widget,
                            long event)
Overrides:
gtk_window_state_event in class Widget

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)
Overrides:
setBounds in class Canvas

setCursor

void setCursor(long cursor)
Overrides:
setCursor in class Control

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:
setEnabled in class Control

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:
setInitialSize in class Control

setMaximized

public void setMaximized(boolean maximized)
Description copied from class: Decorations
Sets the maximized state of the receiver. If the argument is true causes the receiver to switch to the maximized state, and if the argument is false and the receiver was previously maximized, causes the receiver to switch back to either the minimized or normal states.

Note: The result of intermixing calls tosetMaximized(true) and setMinimized(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:
setMaximized in class Decorations

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:
setMenuBar in class Decorations

setMinimized

public void setMinimized(boolean minimized)
Description copied from class: Decorations
Sets the minimized stated of the receiver. If the argument is true causes the receiver to switch to the minimized state, and if the argument is false and the receiver was previously minimized, causes the receiver to switch back to either the maximized or normal states.

Note: The result of intermixing calls tosetMaximized(true) and setMinimized(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:
setMinimized in class Decorations

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:
setText in class Decorations

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:
setVisible in class Control

setZOrder

void setZOrder(Control sibling,
               boolean above)
Overrides:
setZOrder in class Control

shellMapProc

long shellMapProc(long handle,
                  long arg0,
                  long user_data)
Overrides:
shellMapProc in class Widget

traverseEscape

boolean traverseEscape()
Overrides:
traverseEscape in class Control

trimHeight

int trimHeight()

trimWidth

int trimWidth()

deregister

void deregister()
Overrides:
deregister in class Composite

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 true when sent the message isDisposed(). 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 Dispose event.

Overrides:
dispose in class Widget

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.

Overrides:
getBounds in class Control

releaseHandle

void releaseHandle()
Overrides:
releaseHandle in class Scrollable

releaseShells

void releaseShells()

releaseWidget

void releaseWidget()
Overrides:
releaseWidget in class Decorations

setToolTipText

void setToolTipText(long widget,
                    java.lang.String string)