com.sdm.quasar.client.core.dialog.lifecycle
Class LifeCycleCompletionLevel

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.lifecycle.LifeCycleCompletionLevel
All Implemented Interfaces:
java.io.Serializable

public class LifeCycleCompletionLevel
extends java.lang.Object
implements java.io.Serializable

Typesafe enum: represents the states of completion while a lifecycle transition is made. Used together with the transition-states of LifeCycleState to provide fine-grained information about progress in the lifecycle transition.

Version:
1.0
Author:
Thomas Wolf, sd&m AG
See Also:
Serialized Form

Field Summary
static LifeCycleCompletionLevel[] ALL_INSTANCES
          Stores all instances of this LifeCycleCompletionLevel.
static LifeCycleCompletionLevel FINISHED_CHILDREN
          Completed the child dialogs of the dialog node (does not include dialog node itself).
static LifeCycleCompletionLevel FINISHED_DIALOG
          Completed the dialog node (does not include childs).
static LifeCycleCompletionLevel PLAIN
          Nothing completed in the current notification.
 
Method Summary
static LifeCycleCompletionLevel[] getAllInstances()
          Returns all instances of LifeCycleCompletionLevel.
protected static LifeCycleCompletionLevel getInstanceForId(java.lang.String id)
          Returns the LifeCycleCompletionLevel instance with the given id.
protected  java.lang.Object readResolve()
          Overwrites behaviour on deserialization.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLAIN

public static final LifeCycleCompletionLevel PLAIN
Nothing completed in the current notification. This level is always the first of a notification sequence.


FINISHED_DIALOG

public static final LifeCycleCompletionLevel FINISHED_DIALOG
Completed the dialog node (does not include childs). Depending on the notification used together with this can mean, that childs are already done or just will be - it just tells about completion of the dialog node!


FINISHED_CHILDREN

public static final LifeCycleCompletionLevel FINISHED_CHILDREN
Completed the child dialogs of the dialog node (does not include dialog node itself). Depending on the notification used together with this can mean, that the dialog node is already done or just will be - it just tells about completion of the child dialogs!


ALL_INSTANCES

public static final LifeCycleCompletionLevel[] ALL_INSTANCES
Stores all instances of this LifeCycleCompletionLevel.

Method Detail

toString

public java.lang.String toString()

getAllInstances

public static final LifeCycleCompletionLevel[] getAllInstances()
Returns all instances of LifeCycleCompletionLevel.


getInstanceForId

protected static final LifeCycleCompletionLevel getInstanceForId(java.lang.String id)
Returns the LifeCycleCompletionLevel instance with the given id.

Throws:
java.lang.IllegalArgumentException - if the id given is not known.

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Overwrites behaviour on deserialization. The implementation here ensures, that only a single instance of every enum identifier exists in the class loader.

Throws:
java.io.ObjectStreamException