Package com.openfin.desktop.win32
Class DesktopPortHandler
java.lang.Object
com.openfin.desktop.win32.DesktopPortHandler
- All Implemented Interfaces:
PortDiscoveryHandler
,com.sun.jna.AltCallingConvention
,com.sun.jna.Callback
,com.sun.jna.platform.win32.WinUser.WindowProc
,com.sun.jna.win32.StdCall
,com.sun.jna.win32.StdCallLibrary.StdCallCallback
public class DesktopPortHandler extends java.lang.Object implements com.sun.jna.platform.win32.WinUser.WindowProc, PortDiscoveryHandler
Create native Windows and listens to WM_COPYDATA from Runtime for Runtime port discovery.
- Since:
- 12/11/14
- Author:
- wche
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DesktopPortHandler.COPYDATASTRUCT
protected class
DesktopPortHandler.TimeoutThread
protected class
DesktopPortHandler.WinMessageThread
-
Field Summary
-
Method Summary
Modifier and Type Method Description 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)
java.lang.String
getEffectivePipeName()
static DesktopPortHandler
getInstance()
int
getLastError()
void
registerEventListener(EventListener listener, int timeout)
void
removeEventListener(EventListener listener)
-
Method Details
-
getInstance
-
registerEventListener
- Specified by:
registerEventListener
in interfacePortDiscoveryHandler
-
removeEventListener
- Specified by:
removeEventListener
in interfacePortDiscoveryHandler
-
getEffectivePipeName
public java.lang.String getEffectivePipeName()- Specified by:
getEffectivePipeName
in interfacePortDiscoveryHandler
-
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 interfacecom.sun.jna.platform.win32.WinUser.WindowProc
-
getLastError
public int getLastError() -
fireEvent
-