Package be.imgn.swing
@NullMarked
package be.imgn.swing
The core of swing: what an application needs outside its user interface.
-
ClassDescriptionWhether the user interface is light or dark, which selects the dark variant of resources.The appearance of the user interface.Declares the application class: its names, as gaia's
ApplicationDirectoriestakes them, and its version.What the application is and where it runs, bound in the root injector.The arguments given to the launch of the application, bound in the root injector.The status of one requirement of a value.Whether a value meets a requirement.The locale of user-interface text, chosen once at startup and bound in the root injector.The executor of a subscribing annotation on the application's event bus, contributed with@IntoSet(EventExecutor.class).Ends the JVM at the end of the shutdown.Asked before the application exits, on theUiExecutor's thread.Handles a failure nothing else handles, such as a task's with noonFailurehandler.Requests the shutdown of the application.ListChange<E>A change of anObservableList, with indices valid for the list just before it.Elements added at an index.Elements removed from an index.Elements replaced from an index by others, not necessarily as many.The display locale, which the application may change while it runs.Declares an interface of typed messages.Observable<T>A value that tells its listeners when it changes.A list that tells its listeners each change, so that a component showing it updates one row rather than all of them.Property<T>An observable value that can be set, from any thread.PublishingWork<T extends @Nullable Object, P>The work of aTaskthat publishes partial results while it runs:Task.of(PublishingWork, Consumer).Told when the application is ready: once the main window is shown, and the events posted while showing it have run.Opens the resources of one package, from the package's own module, so that reading them needs no open package.The resources of classes: their TOML files, merged along the class hierarchy and across the locale and platform variants, and cached per class and locale.Rule<T>A requirement of a value, and the test of whether a value meets it.The disposal list of an application, window or view scope, for what is not a bean.Declares a settings record: what the user chooses and keeps between runs, saved in<id>.tomlin the application's config directory.Holds the value of everySettingsrecord, loaded at startup from the config directory.A step of the shutdown, contributed with@IntoSet(ShutdownStep.class).A step of the startup, contributed with@IntoSet(StartupStep.class).A listener's subscription to anObservable, released when its scope closes or when it is closed.Work that runs on a virtual thread, with its completion hooks.What the work of aTaskcan tell and ask while it runs:Task.of((TaskContext context) -> ...).Runs tasks in a scope, without blocking any input.The work of aTaskthat uses itsTaskContext.Runs work on the user-interface thread.The status of every requirement of a value, met or not, so that a view can show each one and not only the first error.Validator<T>The rules of a value, declared once and tested in a form, a command-line tool or a service.