org.wicketstuff.async.components
Enum InteractionState

java.lang.Object
  extended by java.lang.Enum<InteractionState>
      extended by org.wicketstuff.async.components.InteractionState
All Implemented Interfaces:
Serializable, Comparable<InteractionState>

public enum InteractionState
extends Enum<InteractionState>

Describes the interaction state of a task.


Enum Constant Summary
CANCELABLE
          The task can be canceled.
NON_INTERACTIVE
          The user cannot currently interact with the task.
RESTARTABLE
          The task can be started after it was already started before.
STARTABLE
          The task can be started and was never started before.
 
Method Summary
static InteractionState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InteractionState[] 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

STARTABLE

public static final InteractionState STARTABLE
The task can be started and was never started before.


RESTARTABLE

public static final InteractionState RESTARTABLE
The task can be started after it was already started before.


CANCELABLE

public static final InteractionState CANCELABLE
The task can be canceled.


NON_INTERACTIVE

public static final InteractionState NON_INTERACTIVE
The user cannot currently interact with the task.

Method Detail

values

public static InteractionState[] 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 (InteractionState c : InteractionState.values())
    System.out.println(c);

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

valueOf

public static InteractionState 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 © 2013–2014 Kantega AS. All rights reserved.