org.cruxframework.crux.core.clientoffline
Class Network.Impl

java.lang.Object
  extended by org.cruxframework.crux.core.clientoffline.Network.Impl
All Implemented Interfaces:
HasNetworkHandlers
Direct Known Subclasses:
Network.CacheManifestImpl, Network.SafariImpl, Network.UnsupportedImpl
Enclosing class:
Network

public abstract static class Network.Impl
extends Object
implements HasNetworkHandlers


Field Summary
protected  FastList<NetworkEvent.Handler> handlers
           
protected  OfflineMessages messages
           
 
Constructor Summary
Network.Impl()
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addNetworkHandler(NetworkEvent.Handler handler)
          Adds an NetworkEvent handler.
 void fireEvent(NetworkEvent event)
           
protected  void fireOffLineEvent()
           
protected  void fireOnLineEvent()
           
 boolean isSupported()
          Check if this browser support Crux offline working.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cruxframework.crux.core.clientoffline.HasNetworkHandlers
isOnLine
 

Field Detail

messages

protected OfflineMessages messages

handlers

protected FastList<NetworkEvent.Handler> handlers
Constructor Detail

Network.Impl

public Network.Impl()
Method Detail

addNetworkHandler

public com.google.gwt.event.shared.HandlerRegistration addNetworkHandler(NetworkEvent.Handler handler)
Description copied from interface: HasNetworkHandlers
Adds an NetworkEvent handler.

Specified by:
addNetworkHandler in interface HasNetworkHandlers
Parameters:
handler - the handler
Returns:
the handler registration

isSupported

public boolean isSupported()
Check if this browser support Crux offline working.

Returns:

fireOnLineEvent

protected void fireOnLineEvent()

fireOffLineEvent

protected void fireOffLineEvent()

fireEvent

public void fireEvent(NetworkEvent event)


Copyright © 2014. All rights reserved.