static class EventList.LookupWidgetKey
extends java.lang.Object
EventList.lookup(int, int, boolean, boolean, boolean, TriggerMatch)
.Modifier and Type | Field and Description |
---|---|
private int |
eventId
The event code matched in the lookup.
|
private int |
fid
Frame ID, can be
-1 |
private int |
hash
The cached hash value.
|
private boolean |
isKey
Marks real key pressed by user.
|
private boolean |
specificWidget
When
true only the specific widget events are lsearched, i.e. |
private boolean |
trig
true if the search is for a trigger or false to search for an exit
condition. |
private int |
wid
widget ID, can't be
-1 , but can be SESSION_WINDOW_ID . |
Constructor and Description |
---|
LookupWidgetKey(int fid,
int wid,
boolean trig,
boolean isKey,
boolean specificWidget,
int eventId)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this instance is the same as the other.
|
private int |
hash()
Precalculate the key's hash.
|
int |
hashCode()
The key's hash code.
|
private final int fid
-1
private final int wid
-1
, but can be SESSION_WINDOW_ID
.private final boolean trig
true
if the search is for a trigger or false
to search for an exit
condition.private final boolean isKey
private final boolean specificWidget
true
only the specific widget events are lsearched, i.e. anywhere, session window,
etc. are ignored.private final int eventId
private final int hash
public LookupWidgetKey(int fid, int wid, boolean trig, boolean isKey, boolean specificWidget, int eventId)
fid
- Frame ID, can be -1
wid
- widget ID, can't be -1
, but can be SESSION_WINDOW_ID
.trig
- true
if the search is for a trigger or false
to search for an
exit condition.isKey
- Marks real key pressed by user.specificWidget
- When true
only the specific widget events are lsearched, i.e. anywhere,
session window, etc. are ignored.eventId
- The event code matched in the lookup.public int hashCode()
hashCode
in class java.lang.Object
hash
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other instance.true
if the instances have the same state.private int hash()