public class MsgBlaster extends ComObject
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
hWndTarget
The target hWnd.
|
private java.util.Map<java.lang.Integer,java.lang.Integer> |
msgList
Internal data structure.
|
private java.util.Map<java.lang.Integer,java.lang.Integer> |
msgPassage
Internal data structure.
|
private static java.util.Map<java.lang.Long,MsgBlaster> |
repository
Stores all known
MsgBlaster instances mapped by their ids. |
includeUnannotatedMethods, LOGGER, methodTable, propertyTable
Constructor and Description |
---|
MsgBlaster()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Perform actual delete of all resources.
|
void |
fire()
Test method.
|
java.lang.String |
getActivexName()
Obtain the Activex name of this COM object.
|
integer |
getHWndTarget()
Obtain the
hwnd of the target frame. |
static MsgBlaster |
getInstanceById(long id)
Obtain a specific instance of
MsgBlaster using its id . |
integer |
getMsgList(int index)
The getter for
MsgList indexed property. |
integer |
getMsgPassage(int index)
The getter for
MsgPassage indexed property. |
void |
incomingMessage(int msgVal,
int wParam,
int lParam,
int lplRetVal)
Incoming notification from client-side.
|
void |
sethWndTarget(integer newTarget)
Sets the
hwnd of the target frame. |
void |
setMsgList(integer val,
int index)
The setter for
MsgList indexed property. |
void |
setMsgPassage(integer pass,
int index)
The setter for
MsgPassage indexed property. |
call, chainCall, checkParameters, deref, destroy, getComObjectClass, getComObjectInstance, getName, getParentControlFrame, getParentProcedure, getProperty, id, id, init, marshal, ref, setName, setParentControlFrame, setProperty, unknown, unmarshal, unmarshal, valid
private java.lang.Integer hWndTarget
private final java.util.Map<java.lang.Integer,java.lang.Integer> msgList
The events that will be captured for the target widget and delivered as COM events.
I found a List Of Windows Messages at https://wiki.winehq.org/List_Of_Windows_Messages.
private final java.util.Map<java.lang.Integer,java.lang.Integer> msgPassage
The management of the event after capturing:
private static final java.util.Map<java.lang.Long,MsgBlaster> repository
MsgBlaster
instances mapped by their ids.public MsgBlaster()
public static MsgBlaster getInstanceById(long id)
MsgBlaster
using its id
. If such instance
was not found (never created or already deleted) null
is returned.id
- The id
of the MsgBlaster
to be returned.MsgBlaster
with the requested id
or null
if not found.public java.lang.String getActivexName()
getActivexName
in class ComObject
public void delete()
public integer getHWndTarget()
hwnd
of the target frame.hwnd
of the target frame.public void sethWndTarget(integer newTarget)
hwnd
of the target frame.newTarget
- the new hwnd
of the target frame.public integer getMsgList(int index)
MsgList
indexed property.index
- The index of the property.public void setMsgList(integer val, int index)
MsgList
indexed property.val
- The value to be set for the property at requested index.index
- The index of the property.public integer getMsgPassage(int index)
MsgPassage
indexed property.index
- The index of the property.public void setMsgPassage(integer pass, int index)
MsgPassage
indexed property.
Possible values (extracted from comments in customer's code):
pass
- The value to be set for the property at requested index.index
- The index of the property.public void incomingMessage(int msgVal, int wParam, int lParam, int lplRetVal)
msgVal
- The message id. Should be one already added to msgList
.wParam
- Message parameter 1.lParam
- Message parameter 2.lplRetVal
- Message parameter / return value.public void fire()