Wt 3.1.10
Public Member Functions
Wt::WDefaultLoadingIndicator Class Reference

A default loading indicator. More...

#include <Wt/WDefaultLoadingIndicator>

Inheritance diagram for Wt::WDefaultLoadingIndicator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 WDefaultLoadingIndicator ()
 Constructor.
virtual WWidgetwidget ()
 Returns the widget that visually represents the indicator.
virtual void setMessage (const WString &text)
 Sets the message that you want to be displayed.

Detailed Description

A default loading indicator.

The default loading indicator displays the text message Loading... in the right top corner of the window.

CSS

This widget does not provide styling, and can be styled using inline or external CSS as appropriate.

i18n

The strings used in this class can be translated by overriding the default values for the following localization keys:

See also:
WApplication::setLoadingIndicator()

Member Function Documentation

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 ( ) [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).

Note:
The widget will not be added to the WApplication::root() container.

Implements Wt::WLoadingIndicator.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Mon Nov 14 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4