com.vaadin.addon.touchkit.gwt.client.offlinemode
Enum OfflineMode.ActivationReason

java.lang.Object
  extended by java.lang.Enum<OfflineMode.ActivationReason>
      extended by com.vaadin.addon.touchkit.gwt.client.offlinemode.OfflineMode.ActivationReason
All Implemented Interfaces:
Serializable, Comparable<OfflineMode.ActivationReason>
Enclosing interface:
OfflineMode

public static enum OfflineMode.ActivationReason
extends Enum<OfflineMode.ActivationReason>


Enum Constant Summary
ACTIVATED_BY_SERVER
          The offline mode activation was requested by the server side application.
BAD_RESPONSE
          The server responded, but the response couldn't be parsed.
NO_NETWORK
          The device has no network connection
ONLINE_APP_NOT_STARTED
          The online app is not started.
UNKNOWN
          The reason is unknown.
 
Method Summary
static OfflineMode.ActivationReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OfflineMode.ActivationReason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_NETWORK

public static final OfflineMode.ActivationReason NO_NETWORK
The device has no network connection


BAD_RESPONSE

public static final OfflineMode.ActivationReason BAD_RESPONSE
The server responded, but the response couldn't be parsed.


ACTIVATED_BY_SERVER

public static final OfflineMode.ActivationReason ACTIVATED_BY_SERVER
The offline mode activation was requested by the server side application.


UNKNOWN

public static final OfflineMode.ActivationReason UNKNOWN
The reason is unknown.


ONLINE_APP_NOT_STARTED

public static final OfflineMode.ActivationReason ONLINE_APP_NOT_STARTED
The online app is not started.

Method Detail

values

public static OfflineMode.ActivationReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OfflineMode.ActivationReason c : OfflineMode.ActivationReason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OfflineMode.ActivationReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014 Vaadin Ltd. All rights reserved.