Files
Mahmoud Ben Hassine e3cb93791d Update documentation
2025-04-25 10:13:56 +02:00

24 lines
671 B
Plaintext

[[tui-events-eventloop]]
= EventLoop
:page-section-summary-toc: 1
ifndef::snippets[:snippets: ../../../../../src/test/java/org/springframework/shell/docs]
`EventLoop` is a central place where all eventing will be orchestrated for
a lifecycle of a component. Orchestration is usually needed around timings
of redraws and component state updates.
Everything in an event loop is represented as a Spring Message:
[source, java, indent=0]
----
include::{snippets}/EventLoopSnippets.java[tag=plainevents]
----
Selecting key events use a built-in filtering method _keyEvents()_.
[source, java, indent=0]
----
include::{snippets}/EventLoopSnippets.java[tag=keyevents]
----