Modifier and Type | Field and Description |
---|---|
private boolean |
priority
This flag marks invocation events (like for window activation) that must be executed at the
same time with main event processing.
|
private java.lang.Runnable |
runnable
Reference to
Runnable which will be executed on the event thread. |
Constructor and Description |
---|
InvocationEvent(boolean priority,
java.lang.Runnable runnable)
Default constructor.
|
InvocationEvent(java.lang.Runnable runnable)
Default constructor.
|
InvocationEvent(Widget source,
boolean priority,
java.lang.Runnable runnable)
Constructs the invocation event for the given pair of a widget and its runnable having the given priority
value.
|
InvocationEvent(Widget source,
java.lang.Runnable runnable)
Constructs the invocation event for the given pair of a widget and its runnable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Runnable |
getRunnable()
Runnable getter.
|
boolean |
isPriority()
Get the state of the
priority flag. |
void |
print(PrintHelper printer)
Print all class-specific fields.
|
consume, id, isConsumed, other, source, toString
private final java.lang.Runnable runnable
Runnable
which will be executed on the event thread.private final boolean priority
public InvocationEvent(java.lang.Runnable runnable)
runnable
- A reference to Runnable
to be executed on the event thread.java.lang.IllegalArgumentException
- when runnable is null
.public InvocationEvent(Widget source, java.lang.Runnable runnable)
source
- A widget source which method to be executed on the event thread.runnable
- A reference to Runnable
to be executed on the event thread.java.lang.IllegalArgumentException
- when runnable is null
.public InvocationEvent(boolean priority, java.lang.Runnable runnable)
priority
- Mark OS events which need to execute with the main 4GL event processing, and not
wait for a event processing loop.runnable
- A reference to Runnable
to be executed on the event thread.java.lang.IllegalArgumentException
- when runnable is null
.public InvocationEvent(Widget source, boolean priority, java.lang.Runnable runnable)
source
- A widget source which method to be executed on the event thread.priority
- Mark OS events which need to execute with the main 4GL event processing, and not
wait for event processing loop.runnable
- A reference to Runnable
to be executed on the event thread.java.lang.IllegalArgumentException
- when runnable is null
.public java.lang.Runnable getRunnable()
Runnable
reference.public boolean isPriority()
priority
flag.public void print(PrintHelper printer)