|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.addon.touchkit.settings.ApplicationCacheSettings
public class ApplicationCacheSettings
This class is used to control HTML5 application cache settings.
Constructor Summary | |
---|---|
ApplicationCacheSettings()
|
Method Summary | |
---|---|
protected String |
generateManifestFileName(com.vaadin.server.BootstrapPageResponse response)
Generates the manifest file name for the given page response |
boolean |
isCacheManifestEnabled()
|
void |
modifyBootstrapFragment(com.vaadin.server.BootstrapFragmentResponse response)
|
void |
modifyBootstrapPage(com.vaadin.server.BootstrapPageResponse response)
|
void |
setCacheManifestEnabled(boolean cacheManifestEnabled)
Enable or disable the cache manifest (and thus application cache). |
void |
setUpdateCheckInterval(int interval)
Specifies how often to check for and download updates to the application cache (== widget set). |
void |
setUpdateNowMessage(String message)
Specifies the message to show when an update to the application cache is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationCacheSettings()
Method Detail |
---|
public void modifyBootstrapFragment(com.vaadin.server.BootstrapFragmentResponse response)
modifyBootstrapFragment
in interface com.vaadin.server.BootstrapListener
public void modifyBootstrapPage(com.vaadin.server.BootstrapPageResponse response)
modifyBootstrapPage
in interface com.vaadin.server.BootstrapListener
protected String generateManifestFileName(com.vaadin.server.BootstrapPageResponse response)
response
- Page response where the manifest will be added.
public boolean isCacheManifestEnabled()
public void setCacheManifestEnabled(boolean cacheManifestEnabled)
cacheManifestEnabled
- true to enable.public void setUpdateNowMessage(String message)
message
- The new message. The default is
"There are updates ready to be installed. Would you like to restart now?"public void setUpdateCheckInterval(int interval)
interval
- The interval in seconds. The default is 30 minutes (1800
seconds).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |