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)
 Change 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.

See also:
WApplication::setLoadingIndicator()

Member Function Documentation

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

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

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.


Generated on Tue Nov 3 15:34:32 2009 for Wt by doxygen 1.5.6