|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jacob.com.JacobObject
com.jacob.com.DispatchEvents
com.jacob.activeX.ActiveXDispatchEvents
public class ActiveXDispatchEvents
RELEASE 1.12 EXPERIMENTAL.
Use this exactly like the DispatchEvents class. This class plugs in an ActiveXInvocationProxy instead of an InvocationProxy. It is the ActiveXInvocationProxy that implements the reflection calls and invoke the found java event callbacks. See ActiveXInvocationProxy for details.
Constructor Summary | |
---|---|
ActiveXDispatchEvents(Dispatch sourceOfEvent,
Object eventSink)
This is the most commonly used constructor. |
|
ActiveXDispatchEvents(Dispatch sourceOfEvent,
Object eventSink,
String progId)
None of the samples use this constructor. |
|
ActiveXDispatchEvents(Dispatch sourceOfEvent,
Object eventSink,
String progId,
String typeLib)
Creates the event callback linkage between the the MS program represented by the Dispatch object and the Java object that will receive the callback. |
Method Summary | |
---|---|
protected InvocationProxy |
getInvocationProxy(Object pTargetObject)
Returns an instance of the proxy configured with pTargetObject as its target |
Methods inherited from class com.jacob.com.DispatchEvents |
---|
finalize, safeRelease |
Methods inherited from class com.jacob.com.JacobObject |
---|
debug, getBuildDate, getBuildVersion, isDebugEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActiveXDispatchEvents(Dispatch sourceOfEvent, Object eventSink)
Creates the event callback linkage between the the MS program represented by the Dispatch object and the Java object that will receive the callback.
sourceOfEvent
- Dispatch object who's MS app will generate callbackseventSink
- Java object that wants to receive the eventspublic ActiveXDispatchEvents(Dispatch sourceOfEvent, Object eventSink, String progId)
Creates the event callback linkage between the the MS program represented by the Dispatch object and the Java object that will receive the callback.
sourceOfEvent
- Dispatch object who's MS app will generate callbackseventSink
- Java object that wants to receive the eventsprogId
- ???public ActiveXDispatchEvents(Dispatch sourceOfEvent, Object eventSink, String progId, String typeLib)
>ActiveXDispatchEvents de = new ActiveXDispatchEvents(someDispatch,someEventHAndler, "Excel.Application", "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE");
sourceOfEvent
- Dispatch object who's MS app will generate callbackseventSink
- Java object that wants to receive the eventsprogId
- , mandatory if the typelib is specifiedtypeLib
- The location of the typelib to useMethod Detail |
---|
protected InvocationProxy getInvocationProxy(Object pTargetObject)
DispatchEvents
getInvocationProxy
in class DispatchEvents
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |