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.

Since:
12/11/14
Author:
wche

Nested Class Summary
static class DesktopPortHandler.COPYDATASTRUCT
           
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
 
Constructor Summary
DesktopPortHandler(String windowClassName)
           
 
Method Summary
 void addEvenListener(EventListener listener)
           
 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(ActionEvent actionEvent)
           
 int getLastError()
           
static void main(String[] args)
          Test
 void removeEventListener(EventListener listener)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopPortHandler

public DesktopPortHandler(String windowClassName)
Method Detail

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.