com.openfin.desktop.win32
Class DesktopPortHandler
java.lang.Object
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.
- Since:
- 12/11/14
- Author:
- wche
| Nested classes/interfaces inherited from interface com.sun.jna.Callback |
com.sun.jna.Callback.UncaughtExceptionHandler |
| Fields inherited from interface com.sun.jna.Callback |
FORBIDDEN_NAMES, METHOD_NAME |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesktopPortHandler
public DesktopPortHandler(String windowClassName)
start
public void start()
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()
addEvenListener
public void addEvenListener(EventListener listener)
removeEventListener
public void removeEventListener(EventListener listener)
fireEvent
public void fireEvent(ActionEvent actionEvent)
main
public static void main(String[] args)
throws Exception
- Test
- Parameters:
args -
- Throws:
Exception
Copyright © 2015. All rights reserved.