|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.addon.touchkit.gwt.client.offlinemode.DefaultOfflineMode
public class DefaultOfflineMode
This class is the default implementation of the offline mode used by Vaadin TouchKit. It is displayed when the network connection is down or if the server cannot be reached for some other reason.
Messages displayed by the default offline mode can be replaced by adding
customized properties files for the OfflineModeMessages
bundle. See
the GWT i18n documentation for more details.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.addon.touchkit.gwt.client.offlinemode.OfflineMode |
---|
OfflineMode.ActivationEvent, OfflineMode.ActivationReason |
Field Summary | |
---|---|
protected static int |
Z_INDEX
|
Constructor Summary | |
---|---|
DefaultOfflineMode()
|
Method Summary | |
---|---|
void |
activate(OfflineMode.ActivationEvent event)
This method is called when a TouchKit app decides to go offline. |
protected void |
buildDefaultContent()
This method is called by the default OfflineMode.activate(ActivationEvent)
implementation to build the contents of the offline mode each time it is
activated. |
boolean |
deactivate()
This method is called when TouchKit detects that it might be possible to go online again (e.g. |
String |
getActivationMessage()
|
com.google.gwt.user.client.ui.Panel |
getPanel()
Returns the panel created by default activate function. |
boolean |
isActive()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int Z_INDEX
Constructor Detail |
---|
public DefaultOfflineMode()
Method Detail |
---|
public com.google.gwt.user.client.ui.Panel getPanel()
Note, that if the super method is not called in activate method, the panel will not be created on null will be returned. Developers have then full control over the offline mode behaviour.
public void activate(OfflineMode.ActivationEvent event)
OfflineMode
activate
in interface OfflineMode
event
- Details about the activation.public boolean isActive()
isActive
in interface OfflineMode
public String getActivationMessage()
OfflineMode.activate(ActivationEvent)
method.protected void buildDefaultContent()
OfflineMode.activate(ActivationEvent)
implementation to build the contents of the offline mode each time it is
activated. The simplest method to customize offline mode is to override
this method and add a custom app to the panel returned by the
getPanel()
method.
public boolean deactivate()
If you have implemented a more advanced offline mode, override this method and gracefully return to normal operation. In that case return false
deactivate
in interface OfflineMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |