dsto.dfc.swt.win32
Class Windows

java.lang.Object
  extended by dsto.dfc.swt.win32.Windows

public final class Windows
extends Object

SWT Win32 access routines.

Version:
$Revision$
Author:
mpp

Field Summary
protected static int dockedPosition
           
protected static org.eclipse.swt.widgets.Shell dockedWindow
           
protected static dsto.dfc.swt.win32.Windows.DockedWindowListener dockedWindowListener
           
protected static org.eclipse.swt.widgets.Shell messageWindow
           
 
Method Summary
static void desktopDock(org.eclipse.swt.widgets.Shell window, int position, int width, int height)
          Dock a window with the Windows desktop.
static void desktopUndock(org.eclipse.swt.widgets.Shell window)
          Undock a previously docked window from the Windows desktop.
static org.eclipse.swt.graphics.Rectangle getPrimaryDesktopArea(org.eclipse.swt.widgets.Display display)
          Deprecated. As of SWT 3.0, use Display.getPrimaryMonitor().
static boolean inFullScreenMode()
          Test if a full screen application is running.
static void registerMessageWindow()
           
static void setAlwaysOnTop(org.eclipse.swt.widgets.Shell window, boolean onTop)
           
static void setOnTop(org.eclipse.swt.widgets.Shell shell, boolean onTop)
          Set the window to be on top or bottom of the stack of standard windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageWindow

protected static org.eclipse.swt.widgets.Shell messageWindow

dockedPosition

protected static int dockedPosition

dockedWindow

protected static org.eclipse.swt.widgets.Shell dockedWindow

dockedWindowListener

protected static dsto.dfc.swt.win32.Windows.DockedWindowListener dockedWindowListener
Method Detail

registerMessageWindow

public static void registerMessageWindow()

setAlwaysOnTop

public static void setAlwaysOnTop(org.eclipse.swt.widgets.Shell window,
                                  boolean onTop)

setOnTop

public static void setOnTop(org.eclipse.swt.widgets.Shell shell,
                            boolean onTop)
Set the window to be on top or bottom of the stack of standard windows.


desktopDock

public static void desktopDock(org.eclipse.swt.widgets.Shell window,
                               int position,
                               int width,
                               int height)
                        throws IllegalStateException
Dock a window with the Windows desktop. Only one window may be docked at a time. Can be called again with same window and same position to update docked size to current window size.

Parameters:
window - The window to dock.
position - The position to dock the window at (DESKTOP_TOP, DESKTOP_LEFT, DESKTOP_RIGHT or DESKTOP_BOTTOM).
width - The requested width of the docked window.
height - The requested height of the docked window.
Throws:
IllegalStateException - if a window is already docked or the handle for the window could not be retrieved.
See Also:
desktopUndock(Shell)

desktopUndock

public static void desktopUndock(org.eclipse.swt.widgets.Shell window)
                          throws IllegalStateException
Undock a previously docked window from the Windows desktop.

Parameters:
window - The window to undock.
Throws:
IllegalStateException - if window handle was not able to be retrieved.
See Also:
desktopDock(Shell, int, int, int)

inFullScreenMode

public static boolean inFullScreenMode()
                                throws IllegalStateException
Test if a full screen application is running.

Throws:
IllegalStateException

getPrimaryDesktopArea

public static org.eclipse.swt.graphics.Rectangle getPrimaryDesktopArea(org.eclipse.swt.widgets.Display display)
Deprecated. As of SWT 3.0, use Display.getPrimaryMonitor().

Get the current desktop area for the primary screen. On Windows, this avoids treating the entire virtual display (ie possibly across multiple monitors) as the desktop.



Copyright © 2008 Commonwealth of Australia