The statusbar of the application can be used to show informative messages to the user, and to monitor progress.
There is one implementation included in the framework, the DefaultStatusBar
TODO: provide screenshots
The default statusbar has a message area, and a progress area. The progress area is default hidden.
Error messages and info messages are shown in the same area, but the error messages are shown in red.
If an error message is shown when a info message is shown, the error message is shown over the info message. When the error message is erased, the info message is restored.
Two types of messages can be set on a statusbar, an error message and a "normal" message. A StatusBar
implementation is free to choose the
rendering style of the messages.
To provide another StatusBar implementation, implement the StatusBar
interface, and override the ApplicationLifecycleAdvisor.getStatusBar()
method.
If you have a CustomStatusBar
class like this ...
public CustomStatusBar implements StatusBar { ... }
you use it like this:
public class CustomApplicationLifecycleAdvisor extends DefaultApplicationLifecycleAdvisor { ... @Override public StatusBar getStatusBar() { return new CustomStatusBar(); } ... }