#include <Wt/WDefaultLoadingIndicator>
Public Member Functions | |
virtual WWidget * | widget () |
Returns the widget that visually represents the indicator. | |
virtual void | setMessage (const WString &text) |
Change the message that you want to be displayed. |
The default loading indicator displays the text message Loading... in the right top corner of the window.
virtual WWidget* Wt::WDefaultLoadingIndicator::widget | ( | ) | [inline, virtual] |
Returns the widget that visually represents the indicator.
You should reimplement this method to return a widget that will be shown to indicate that a response is pending. You should position the widget on the screen using CSS.
The widget will be shown and hidden using WWidget::show() and WWidget::hide(). If you want to customize this behaviour, you should reimplement the WWidget::setHidden() method. Note that these are stateless slots, and thus you need to make sure that your implementation comforms to that contract, so that it may be optimized to JavaScript (the server-side implementation will only be called during stateless slot prelearning).
Implements Wt::WLoadingIndicator.
void Wt::WDefaultLoadingIndicator::setMessage | ( | const WString & | text | ) | [virtual] |
Change the message that you want to be displayed.
If the indicator is capable of displaying a text message, then you should reimplement this method to allow this message to be modified.
Implements Wt::WLoadingIndicator.