com.vaadin.addon.touchkit.gwt.client.vcom
Class OfflineModeConnector

java.lang.Object
  extended by com.vaadin.client.ui.AbstractConnector
      extended by com.vaadin.client.extensions.AbstractExtensionConnector
          extended by com.vaadin.addon.touchkit.gwt.client.vcom.OfflineModeConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.vaadin.client.ApplicationConnection.CommunicationErrorHandler, com.vaadin.client.ApplicationConnection.CommunicationHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ServerConnector, com.vaadin.shared.Connector, Serializable

public class OfflineModeConnector
extends com.vaadin.client.extensions.AbstractExtensionConnector
implements com.vaadin.client.ApplicationConnection.CommunicationHandler, com.vaadin.client.ApplicationConnection.CommunicationErrorHandler

See Also:
Serialized Form

Nested Class Summary
 class OfflineModeConnector.CheckForNetwork
          Polls whether network connection has returned
 
Constructor Summary
OfflineModeConnector()
           
 
Method Summary
protected  void extend(com.vaadin.client.ServerConnector target)
           
 OfflineMode getOfflineApp()
           
 OfflineModeState getState()
           
 void goOffline(OfflineMode.ActivationEvent event)
           
protected  void init()
           
static boolean isNetworkOnline()
           
 boolean onError(String details, int statusCode)
           
 void onRequestStarting(com.vaadin.client.ApplicationConnection.RequestStartingEvent e)
           
 void onResponseHandlingEnded(com.vaadin.client.ApplicationConnection.ResponseHandlingEndedEvent e)
           
 void onResponseHandlingStarted(com.vaadin.client.ApplicationConnection.ResponseHandlingStartedEvent e)
           
 void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
           
 void reload()
           
 void resume()
           
 
Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector
setParent
 
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, unregisterRpc, updateEnabledState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineModeConnector

public OfflineModeConnector()
Method Detail

getState

public OfflineModeState getState()
Specified by:
getState in interface com.vaadin.client.ServerConnector
Overrides:
getState in class com.vaadin.client.ui.AbstractConnector

init

protected void init()
Overrides:
init in class com.vaadin.client.ui.AbstractConnector

onStateChanged

public void onStateChanged(com.vaadin.client.communication.StateChangeEvent stateChangeEvent)
Specified by:
onStateChanged in interface com.vaadin.client.communication.StateChangeEvent.StateChangeHandler
Overrides:
onStateChanged in class com.vaadin.client.ui.AbstractConnector

getOfflineApp

public OfflineMode getOfflineApp()

goOffline

public void goOffline(OfflineMode.ActivationEvent event)

resume

public void resume()

reload

public void reload()

isNetworkOnline

public static boolean isNetworkOnline()

onError

public boolean onError(String details,
                       int statusCode)
Specified by:
onError in interface com.vaadin.client.ApplicationConnection.CommunicationErrorHandler

onRequestStarting

public void onRequestStarting(com.vaadin.client.ApplicationConnection.RequestStartingEvent e)
Specified by:
onRequestStarting in interface com.vaadin.client.ApplicationConnection.CommunicationHandler

onResponseHandlingStarted

public void onResponseHandlingStarted(com.vaadin.client.ApplicationConnection.ResponseHandlingStartedEvent e)
Specified by:
onResponseHandlingStarted in interface com.vaadin.client.ApplicationConnection.CommunicationHandler

onResponseHandlingEnded

public void onResponseHandlingEnded(com.vaadin.client.ApplicationConnection.ResponseHandlingEndedEvent e)
Specified by:
onResponseHandlingEnded in interface com.vaadin.client.ApplicationConnection.CommunicationHandler

extend

protected void extend(com.vaadin.client.ServerConnector target)
Specified by:
extend in class com.vaadin.client.extensions.AbstractExtensionConnector


Copyright © 2014 Vaadin Ltd. All rights reserved.