com.develop.jawin
Class EventHelper

java.lang.Object
  extended bycom.develop.jawin.EventHelper

public class EventHelper
extends java.lang.Object

Helper class to add, remove and invoke event listener

Author:
Vitally Shelest

Constructor Summary
EventHelper()
           
 
Method Summary
static int addListener(IUnknown owner, IUnknown sink)
          Adds a new listenet
static byte[] invoke(java.lang.Object srcObj, java.lang.Object itf, int memid, java.lang.Object[] params)
          Invokes the listener method.
static int newListener(java.lang.Object listener, GUID iid, int guidToken)
          Creates a new listener object
static void removeListener(IUnknown owner, java.lang.Object sink)
          Removes the listener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventHelper

public EventHelper()
Method Detail

newListener

public static int newListener(java.lang.Object listener,
                              GUID iid,
                              int guidToken)
                       throws COMException
Creates a new listener object

Parameters:
listener - listener class
iid - listener IID
guidToken -
Returns:
Throws:
COMException

addListener

public static int addListener(IUnknown owner,
                              IUnknown sink)
                       throws COMException
Adds a new listenet

Parameters:
owner -
sink -
Returns:
Throws:
COMException

removeListener

public static void removeListener(IUnknown owner,
                                  java.lang.Object sink)
                           throws COMException
Removes the listener

Parameters:
owner -
sink -
Returns:
Throws:
COMException

invoke

public static byte[] invoke(java.lang.Object srcObj,
                            java.lang.Object itf,
                            int memid,
                            java.lang.Object[] params)
                     throws COMException
Invokes the listener method. It is called from the native code

Parameters:
srcObj -
itf -
memid -
Returns:
Throws:
COMException


Composia Soft Ltd. Designed by Vitally Shelest. .