com.openfin.desktop.win32
Class DesktopPortHandler

java.lang.Object
  extended by com.openfin.desktop.win32.DesktopPortHandler
All Implemented Interfaces:
com.sun.jna.Callback, com.sun.jna.platform.win32.WinUser.WindowProc

public class DesktopPortHandler
extends Object
implements com.sun.jna.platform.win32.WinUser.WindowProc

Create native Windows and listens to WM_COPYDATA from Runtime for Runtime port discovery.

Since:
12/11/14
Author:
wche

Nested Class Summary
static class DesktopPortHandler.COPYDATASTRUCT
           
protected  class DesktopPortHandler.TimeoutThread
           
protected  class DesktopPortHandler.WinMessageThread
           
 
Nested classes/interfaces inherited from interface com.sun.jna.Callback
com.sun.jna.Callback.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME
 
Method Summary
 com.sun.jna.platform.win32.WinDef.LRESULT callback(com.sun.jna.platform.win32.WinDef.HWND hwnd, int uMsg, com.sun.jna.platform.win32.WinDef.WPARAM wparam, com.sun.jna.platform.win32.WinDef.LPARAM lparam)
           
 void fireEvent(com.sun.jna.platform.win32.WinDef.HWND hwnd, ActionEvent actionEvent)
           
 int getLastError()
           
static void registerEventListener(EventListener listener, int timeout)
           
static void removeEventListener(EventListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerEventListener

public static void registerEventListener(EventListener listener,
                                         int timeout)

removeEventListener

public static void removeEventListener(EventListener listener)

callback

public com.sun.jna.platform.win32.WinDef.LRESULT callback(com.sun.jna.platform.win32.WinDef.HWND hwnd,
                                                          int uMsg,
                                                          com.sun.jna.platform.win32.WinDef.WPARAM wparam,
                                                          com.sun.jna.platform.win32.WinDef.LPARAM lparam)
Specified by:
callback in interface com.sun.jna.platform.win32.WinUser.WindowProc

getLastError

public int getLastError()

fireEvent

public void fireEvent(com.sun.jna.platform.win32.WinDef.HWND hwnd,
                      ActionEvent actionEvent)


Copyright © 2016. All rights reserved.