|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.addon.touchkit.gwt.client.offlinemode.CacheManifestStatusIndicator
public class CacheManifestStatusIndicator
This is a simple application cache monitor. It also notifies demo users when offline mode is ready to be used.
Field Summary | |
---|---|
static String |
UPDATE_CHECK_INTERVAL_KEY
|
static String |
UPDATE_NOW_MSG_KEY
|
Constructor Summary | |
---|---|
CacheManifestStatusIndicator()
|
Method Summary | |
---|---|
protected void |
hideProgress()
Hides the progress element. |
protected void |
hookAllListeners(CacheManifestStatusIndicator instance)
Hooks all listeners to the specified instance. |
void |
init()
Initializes and starts the monitoring. |
protected void |
onCacheEvent(com.google.gwt.user.client.Event event)
Called when a cache event is triggered. |
protected void |
onError(com.google.gwt.user.client.Event event)
Called when an error event is triggered. |
void |
onModuleLoad()
|
protected void |
requestUpdate(boolean force)
Called when a new version of the application cache (i.e. |
protected void |
showProgress()
Shows the progress element, which, by default, is styled to be a small animated spinner in the top right corner of the screen. |
protected static void |
updateCache()
Asks the application cache to update itself, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UPDATE_NOW_MSG_KEY
public static final String UPDATE_CHECK_INTERVAL_KEY
Constructor Detail |
---|
public CacheManifestStatusIndicator()
Method Detail |
---|
public void onModuleLoad()
onModuleLoad
in interface com.google.gwt.core.client.EntryPoint
public void init()
protected void onCacheEvent(com.google.gwt.user.client.Event event)
event
- The event.protected void onError(com.google.gwt.user.client.Event event)
event
- The error event.protected void showProgress()
protected void hideProgress()
protected void requestUpdate(boolean force)
force
- true to force reloading the site without asking the user.protected final void hookAllListeners(CacheManifestStatusIndicator instance)
instance
- the instance to hook the listeners to.protected static void updateCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |