Class SystemEvent
- Direct Known Subclasses:
ActionEvent
,ListeningFinishedEvent
,MoveHotPointEvent
onSystemEvent()
method and notifies that area should do some
action which certainly not related to user input. The area may decide
on its own whether it would like to perform the required action or to
ignore it. There can be both system-defined system events and
extension-defined. Generally, there are three major types of
system events:
- Regular events
- Broadcast events
- Addressed events
Broadcast events are always delivered to the areas through main event
loop (otherwise they are pointless). If LUWRAIN core finds such event
in main event loop, it tries to decide which areas should get it,
depending on the class name of the area or on the uniref value (see
getBroadcastFilterAreaClassName()
and
getBroadcastFilterUniRef()
methods). Broadcast events are delivered
over all launched applications.
Addressed events are always delivered to some particular area, even if they are placed in main event loop. Usually they are useful for thread synchronization because handling of the events is always done in main system thread while they can be issued in any thread. The only restriction is that the application which has issued this event must be still launched when the event is processed.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final String
protected final SystemEvent.Code
protected final SystemEvent.Type
-
Constructor Summary
ConstructorDescriptionSystemEvent
(SystemEvent.Code code) SystemEvent
(SystemEvent.Type type, SystemEvent.Code code) SystemEvent
(SystemEvent.Type type, SystemEvent.Code code, String broadcastFilterAreaClassName, String broadcastFilterUniRef) -
Method Summary
Modifier and TypeMethodDescriptionfinal SystemEvent.Code
getCode()
final SystemEvent.Type
getType()
Methods inherited from class org.luwrain.core.Event
markAsProcessed, waitForBeProcessed
-
Field Details
-
code
-
type
-
broadcastFilterAreaClassName
-
broadcastFilterUniRef
-
-
Constructor Details
-
SystemEvent
-
SystemEvent
-
SystemEvent
public SystemEvent(SystemEvent.Type type, SystemEvent.Code code, String broadcastFilterAreaClassName, String broadcastFilterUniRef)
-
-
Method Details
-
getCode
-
getType
-
getBroadcastFilterAreaClassName
-
getBroadcastFilterUniRef
-