final class OleEventSink
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
eventCookie |
private GUID |
eventGuid |
private OleEventTable |
eventTable |
private COMObject |
iDispatch |
private IUnknown |
objIUnknown |
private int |
refCount |
private OleControlSite |
widget |
Constructor and Description |
---|
OleEventSink(OleControlSite widget,
int iUnknown,
GUID riid) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addListener(int eventID,
OleListener listener) |
(package private) int |
AddRef() |
(package private) void |
connect() |
private void |
createCOMInterfaces() |
(package private) void |
disconnect() |
private void |
disposeCOMInterfaces() |
(package private) boolean |
hasListeners() |
private int |
Invoke(int dispIdMember,
int riid,
int lcid,
int dwFlags,
int pDispParams,
int pVarResult,
int pExcepInfo,
int pArgErr) |
private void |
notifyListener(int eventType,
OleEvent event)
Notify listeners of an event.
|
private int |
QueryInterface(int riid,
int ppvObject) |
(package private) int |
Release() |
(package private) void |
removeListener(int eventID,
OleListener listener) |
private OleControlSite widget
private COMObject iDispatch
private int refCount
private IUnknown objIUnknown
private int eventCookie
private GUID eventGuid
private OleEventTable eventTable
OleEventSink(OleControlSite widget, int iUnknown, GUID riid)
void connect()
void addListener(int eventID, OleListener listener)
int AddRef()
private void createCOMInterfaces()
void disconnect()
private void disposeCOMInterfaces()
private int Invoke(int dispIdMember, int riid, int lcid, int dwFlags, int pDispParams, int pVarResult, int pExcepInfo, int pArgErr)
private void notifyListener(int eventType, OleEvent event)
This method notifies all listeners that an event has occurred.
eventType
- the desired SWT eventevent
- the event datajava.lang.IllegalArgumentException
- SWTException
- private int QueryInterface(int riid, int ppvObject)
int Release()
void removeListener(int eventID, OleListener listener)
boolean hasListeners()