|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.VLoadingIndicator
public class VLoadingIndicator
Class representing the loading indicator for Vaadin applications. The loading
indicator has four states: "triggered", "first", "second" and "third". When
trigger() is called the indicator moves to its "triggered" state and
then transitions from one state to the next when the timeouts specified using
the set*StateDelay methods occur.
| Constructor Summary | |
|---|---|
VLoadingIndicator()
|
|
| Method Summary | |
|---|---|
ApplicationConnection |
getConnection()
Returns the ApplicationConnection which uses this loading
indicator |
com.google.gwt.user.client.Element |
getElement()
Returns the root element of the loading indicator |
int |
getFirstDelay()
Returns the delay (in ms) which must pass before the loading indicator moves into the "first" state and is shown to the user |
int |
getSecondDelay()
Returns the delay (in ms) which must pass before the loading indicator moves to its "second" state. |
int |
getThirdDelay()
Returns the delay (in ms) which must pass before the loading indicator moves to its "third" state. |
void |
hide()
Hides the loading indicator (if visible). |
boolean |
isVisible()
Returns whether or not the loading indicator is showing. |
void |
setFirstDelay(int firstDelay)
Sets the delay (in ms) which must pass before the loading indicator moves into the "first" state and is shown to the user |
void |
setSecondDelay(int secondDelay)
Sets the delay (in ms) which must pass before the loading indicator moves to its "second" state. |
void |
setThirdDelay(int thirdDelay)
Sets the delay (in ms) which must pass before the loading indicator moves to its "third" state. |
void |
show()
Shows the loading indicator in its standard state and triggers timers for transitioning into the "second" and "third" states. |
void |
trigger()
Triggers displaying of this loading indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VLoadingIndicator()
| Method Detail |
|---|
public int getFirstDelay()
trigger() is called.public void setFirstDelay(int firstDelay)
firstDelay - The delay (in ms) until moving into the "first" state. Counted
from when trigger() is called.public int getSecondDelay()
trigger() is called.public void setSecondDelay(int secondDelay)
secondDelay - The delay (in ms) until the loading indicator moves into its
"second" state. Counted from when trigger() is
called.public int getThirdDelay()
trigger() is called.public void setThirdDelay(int thirdDelay)
thirdDelay - The delay (in ms) from the event until changing the loading
indicator into its "third" state. Counted from when
trigger() is called.public void trigger()
show() when the "first" delay (as specified
by getFirstDelay()) has passed.
The loading indicator will be hidden if shown when calling this method.
public void show()
public ApplicationConnection getConnection()
ApplicationConnection which uses this loading
indicator
public void hide()
public boolean isVisible()
public com.google.gwt.user.client.Element getElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||