This library extends the set of components and facilities provided by the Chords Core and Chords Proto libraries with components that support server connectivity using the Spine Event Engine framework.
Add a dependency to the library as follows:
dependencies {
implementation("io.spine.chords:spine-chords-client:$chordsVersion")
}
Besides, make sure to add all dependencies for the Spine Chords Proto library.
One of the central pieces that this library adds is the Client interface, which provides ways of interacting with the application server, as well as the respective DesktopClient implementation.
Since server communication can pervasively be needed throughout the
application's implementation, this library also introduces a respective
subclass of Application,
called ClientApplication,
which includes a server connection. This way, a Client
API is made accessible
via the app.client
property, which is available globally.
This library also introduces some components that leverage the server connectivity:
-
CommandMessageForm — a variant of the
MessageForm
component (introduced in the Chords Proto module), which allows creating custom per-field editors of command messages, and has built in means of posting the resulting command to the server. -
CommandWizard — a variant of the
Wizard
component introduced in the Chords Core module, which represents a multipage editor for a command message, and allows posting the resulting command to the application server. -
etc.