|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WWidget
eu.webtoolkit.jwt.WWebWidget
eu.webtoolkit.jwt.WInteractWidget
eu.webtoolkit.jwt.WText
eu.webtoolkit.jwt.WDefaultLoadingIndicator
public class WDefaultLoadingIndicator
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.
The strings used in this class can be translated by overriding the default values for the following localization keys:
WApplication.setLoadingIndicator(WLoadingIndicator indicator)| Constructor Summary | |
|---|---|
WDefaultLoadingIndicator()
Constructor. |
|
| Method Summary | |
|---|---|
WWidget |
getWidget()
Returns the widget that visually represents the indicator. |
void |
setMessage(java.lang.CharSequence text)
Sets the message that you want to be displayed. |
| Methods inherited from class eu.webtoolkit.jwt.WText |
|---|
getPadding, getText, getTextFormat, hasInternalPathEncoding, isWordWrap, refresh, remove, render, setInternalPathEncoding, setPadding, setPadding, setPadding, setText, setTextFormat, setWordWrap |
| Methods inherited from class eu.webtoolkit.jwt.WInteractWidget |
|---|
clicked, doubleClicked, enterPressed, escapePressed, gestureChanged, gestureEnded, gestureStarted, isEnabled, keyPressed, keyWentDown, keyWentUp, load, mouseDragged, mouseMoved, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, mouseWheel, propagateSetEnabled, setDraggable, setDraggable, setDraggable, setDraggable, touchEnded, touchMoved, touchStarted |
| Methods inherited from class eu.webtoolkit.jwt.WWidget |
|---|
acceptDrops, acceptDrops, addCssRule, addCssRule, addStyleClass, animateHide, animateShow, boxBorder, boxPadding, containsExposed, disable, dropEvent, enable, getDrop, getJsRef, getParent, hide, htmlText, isLayoutSizeAware, layoutSizeChanged, positionAt, positionAt, removeStyleClass, resize, setClearSides, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, tr |
| Methods inherited from class eu.webtoolkit.jwt.WObject |
|---|
addChild, getObjectName, setObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WDefaultLoadingIndicator()
| Method Detail |
|---|
public WWidget getWidget()
WLoadingIndicatorYou 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#getRoot() container.
getWidget in interface WLoadingIndicatorpublic void setMessage(java.lang.CharSequence text)
WLoadingIndicatorIf the indicator is capable of displaying a text message, then you should reimplement this method to allow this message to be modified.
setMessage in interface WLoadingIndicator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||