A default loading indicator. More...
#include <Wt/WDefaultLoadingIndicator>
Inherits Wt::WText, and Wt::WLoadingIndicator.
Public Member Functions | |
WDefaultLoadingIndicator () | |
Constructor. | |
virtual WWidget * | widget () |
Returns the widget that visually represents the indicator. | |
virtual void | setMessage (const WString &text) |
Sets the message that you want to be displayed. |
A default loading indicator.
The default loading indicator displays the text message Loading... in the right top corner of the window.
This widget does not provide styling, and can be styled using inline or external CSS as appropriate.
void Wt::WDefaultLoadingIndicator::setMessage | ( | const WString & | text | ) | [virtual] |
Sets 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.
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. The widget should be positioned 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 show() and hide() 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.