org.xwt.plat
Class Win32

java.lang.Object
  extended byorg.xwt.Platform
      extended byorg.xwt.plat.GCJ
          extended byorg.xwt.plat.Win32

public class Win32
extends GCJ

Platform specific code for GCJ-compiled Win32 binaries


Nested Class Summary
static class Win32.Win32Picture
           
static class Win32.Win32PixelBuffer
           
static class Win32.Win32Surface
           
 
Nested classes inherited from class org.xwt.plat.GCJ
GCJ.Retainer
 
Field Summary
static java.util.Hashtable hwndToWin32SurfaceMap
          reverse lookup from hwnd to Win32Surface
static Semaphore messagePumpStarted
          lets us know that natInit() is finished
static int messagePumpThread
          ThreadId of the message pump thread, used to send it messages
 
Fields inherited from class org.xwt.Platform
build
 
Constructor Summary
Win32()
           
 
Method Summary
protected  Picture _createPicture(int[] b, int w, int h)
           
protected  PixelBuffer _createPixelBuffer(int w, int h, Surface owner)
           
protected  Surface _createSurface(Box b, boolean framed)
          this method invokes the platform _createSurface() method and then enforces a few post-call invariants
protected  void _criticalAbort(java.lang.String message)
          used to notify the user of very serious failures; usually used when logging is not working or unavailable
protected  HTTP.Proxy _detectProxy()
          detects proxy settings
protected  java.lang.String _fileDialog(java.lang.String suggestedFileName, boolean write)
          displays a platform-specific "open file" dialog and returns the chosen filename, or null if the user hit cancel
protected  java.lang.String _getClipBoard()
           
protected  java.lang.String _getEnv(java.lang.String key)
           
protected  int _getScreenHeight()
           
protected  int _getScreenWidth()
           
protected  boolean _isCaseSensitive()
           
protected  boolean _needsAutoClick()
           
protected  boolean _newBrowserWindow_(java.lang.String url)
           
protected  void _newBrowserWindow(java.lang.String url)
          default implementation is Eric Albert's BrowserLauncher.java
protected  void _setClipBoard(java.lang.String s)
           
protected  boolean _supressDirtyOnResize()
           
protected  java.lang.String getDescriptiveName()
          a string describing the VM
static java.lang.String getTempPath()
           
 void init()
          this initializes the platform; code in here can invoke methods on Platform since Platform.platform has already been set
static void natInit()
           
 
Methods inherited from class org.xwt.plat.GCJ
_decodeJPEG, _getBuiltinInputStream
 
Methods inherited from class org.xwt.Platform
_altKeyName, _createAlphaOnlyPicture, _getScheduler, _getSocket, _inputStreamToByteArray, _maxThreads, _needsAutoDoubleClick, _running, altKeyName, createAlphaOnlyPicture, createPicture, createPixelBuffer, createSurface, criticalAbort, decodeJPEG, detectProxy, fileDialog, forceLoad, getBuiltinInputStream, getClipBoard, getEnv, getScheduler, getScreenHeight, getScreenWidth, getSocket, inputStreamToByteArray, isCaseSensitive, maxThreads, needsAutoClick, needsAutoDoubleClick, newBrowserWindow, postInit, running, setClipBoard, supressDirtyOnResize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hwndToWin32SurfaceMap

public static java.util.Hashtable hwndToWin32SurfaceMap
reverse lookup from hwnd to Win32Surface


messagePumpStarted

public static Semaphore messagePumpStarted
lets us know that natInit() is finished


messagePumpThread

public static int messagePumpThread
ThreadId of the message pump thread, used to send it messages

Constructor Detail

Win32

public Win32()
Method Detail

getTempPath

public static java.lang.String getTempPath()

natInit

public static void natInit()

_fileDialog

protected java.lang.String _fileDialog(java.lang.String suggestedFileName,
                                       boolean write)
Description copied from class: Platform
displays a platform-specific "open file" dialog and returns the chosen filename, or null if the user hit cancel

Overrides:
_fileDialog in class Platform

init

public void init()
Description copied from class: Platform
this initializes the platform; code in here can invoke methods on Platform since Platform.platform has already been set

Overrides:
init in class Platform

_getEnv

protected java.lang.String _getEnv(java.lang.String key)
Overrides:
_getEnv in class Platform

_needsAutoClick

protected boolean _needsAutoClick()
Overrides:
_needsAutoClick in class Platform

getDescriptiveName

protected java.lang.String getDescriptiveName()
Description copied from class: Platform
a string describing the VM

Overrides:
getDescriptiveName in class Platform

_createSurface

protected Surface _createSurface(Box b,
                                 boolean framed)
Description copied from class: Platform
this method invokes the platform _createSurface() method and then enforces a few post-call invariants

Overrides:
_createSurface in class Platform

_createPixelBuffer

protected PixelBuffer _createPixelBuffer(int w,
                                         int h,
                                         Surface owner)
Overrides:
_createPixelBuffer in class Platform

_createPicture

protected Picture _createPicture(int[] b,
                                 int w,
                                 int h)
Overrides:
_createPicture in class Platform

_getScreenWidth

protected int _getScreenWidth()
Overrides:
_getScreenWidth in class Platform

_getScreenHeight

protected int _getScreenHeight()
Overrides:
_getScreenHeight in class Platform

_supressDirtyOnResize

protected boolean _supressDirtyOnResize()
Overrides:
_supressDirtyOnResize in class Platform

_criticalAbort

protected void _criticalAbort(java.lang.String message)
Description copied from class: Platform
used to notify the user of very serious failures; usually used when logging is not working or unavailable

Overrides:
_criticalAbort in class Platform

_getClipBoard

protected java.lang.String _getClipBoard()
Overrides:
_getClipBoard in class Platform

_setClipBoard

protected void _setClipBoard(java.lang.String s)
Overrides:
_setClipBoard in class Platform

_isCaseSensitive

protected boolean _isCaseSensitive()
Overrides:
_isCaseSensitive in class Platform

_detectProxy

protected HTTP.Proxy _detectProxy()
Description copied from class: Platform
detects proxy settings

Overrides:
_detectProxy in class Platform

_newBrowserWindow_

protected boolean _newBrowserWindow_(java.lang.String url)

_newBrowserWindow

protected void _newBrowserWindow(java.lang.String url)
Description copied from class: Platform
default implementation is Eric Albert's BrowserLauncher.java

Overrides:
_newBrowserWindow in class Platform