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

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.lifecycle.LifeCycleState

public class LifeCycleState
extends java.lang.Object

Typesafe enum: represents the states that a dialog may be in.

Version:
1.0
Author:
Thomas Wolf, sd&m AG

Field Summary
static LifeCycleState ACTIVATING
          State definition for the technical life cycle of a dialog: The dialog is currently been activating.
static LifeCycleState ACTIVE
          In the state active the dialog is visible (although it may be hidden behind other dialogs) and it reacts to events.
static LifeCycleState CREATED
          In the state created the dialog has been initialized, but it is not reacting to any events and is not displayed.
static LifeCycleState CREATING
          State definition for the technical life cycle of a dialog: The dialog is currently been creatng, has already a dialog instance id assigned, but the constructor hasn't been called yet.
static LifeCycleState DEACTIVATING
          State definition for the life cycle of a dialog within the DialogManager: The dialog is currently deactivating.
static LifeCycleState DISPOSED
          In the state a dialog has been disposed.
static LifeCycleState DISPOSING
          State definition for the life cycle of a dialog within the DialogManager: The dialog is currently disposing.
static LifeCycleState PREPARED
          In the state prepared the dialog is not visible and does not process user events, but it has a visual representation and it may react to events from other dialogs.
static LifeCycleState PREPARING
          State definition for the life cycle of a dialog: The dialog is currently prepearing.
static LifeCycleState RELEASING
          State definition for the life cycle of a dialog within the DialogManager:
 
Method Summary
 boolean isActivating()
           
 boolean isActivatingOrActive()
           
 boolean isActive()
           
 boolean isAtLeastCreated()
           
 boolean isAtLeastPrepared()
           
 boolean isAtLeastPreparing()
           
 boolean isCreated()
           
 boolean isCreating()
           
 boolean isDeactivating()
           
 boolean isDisposed()
           
 boolean isDisposing()
           
 boolean isPrepared()
           
 boolean isPreparedOrActive()
           
 boolean isPreparing()
           
 boolean isPreparingOrPrepeared()
           
 boolean isReleasing()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATING

public static final LifeCycleState CREATING
State definition for the technical life cycle of a dialog: The dialog is currently been creatng, has already a dialog instance id assigned, but the constructor hasn't been called yet.


CREATED

public static final LifeCycleState CREATED
In the state created the dialog has been initialized, but it is not reacting to any events and is not displayed. Creation is performed by calling the constructor.

Valid transitions from this state are LifeCycle.prepare() and Disposable.dispose().

This state is reachable eighter by creating the dialog or by releasing it.


PREPARING

public static final LifeCycleState PREPARING
State definition for the life cycle of a dialog: The dialog is currently prepearing.


PREPARED

public static final LifeCycleState PREPARED
In the state prepared the dialog is not visible and does not process user events, but it has a visual representation and it may react to events from other dialogs.

Valid transitions from this state are LifeCycle.activate(), LifeCycle.release() and Disposable.dispose().

The dialog is sucessfully prepeared and not (yet) activated. This state is reachable eighter by prepearing the dialog or by deactivating it.


ACTIVATING

public static final LifeCycleState ACTIVATING
State definition for the technical life cycle of a dialog: The dialog is currently been activating.


ACTIVE

public static final LifeCycleState ACTIVE
In the state active the dialog is visible (although it may be hidden behind other dialogs) and it reacts to events.

Valid transitions from this state are LifeCycle.deactivate() and Disposable.dispose().

This state is only reachable by activating the dialog.


DEACTIVATING

public static final LifeCycleState DEACTIVATING
State definition for the life cycle of a dialog within the DialogManager: The dialog is currently deactivating.


RELEASING

public static final LifeCycleState RELEASING
State definition for the life cycle of a dialog within the DialogManager:


DISPOSING

public static final LifeCycleState DISPOSING
State definition for the life cycle of a dialog within the DialogManager: The dialog is currently disposing.


DISPOSED

public static final LifeCycleState DISPOSED
In the state a dialog has been disposed. After disposing objects, they should no more be used; let the garbage-collection free them from memory; they are useless in this state.

There are no valid transitions from this state.

See Also:

The dialog has been disposed successfully by calling {@link LifeCycle#dispose()}.

Method Detail

toString

public java.lang.String toString()

isCreated

public boolean isCreated()
Returns:
true iff this instance is CREATED.

isCreating

public boolean isCreating()
Returns:
true iff this instance is CREATING.

isDisposing

public boolean isDisposing()
Returns:
true iff this instance is DISPOSING.

isDisposed

public boolean isDisposed()
Returns:
true iff this instance is DISPOSED.

isPrepared

public boolean isPrepared()
Returns:
true iff this instance is PREPARED.

isPreparing

public boolean isPreparing()
Returns:
true iff this instance is PREPARING.

isReleasing

public boolean isReleasing()
Returns:
true iff this instance is RELEASING.

isPreparingOrPrepeared

public boolean isPreparingOrPrepeared()
Returns:
true iff this instance is PREPARED or PREPARING.

isActive

public boolean isActive()
Returns:
true iff this instance is ACTIVE.

isActivating

public boolean isActivating()
Returns:
true iff this instance is ACTIVATING.

isDeactivating

public boolean isDeactivating()
Returns:
true iff this instance is DEACTIVATING.

isActivatingOrActive

public boolean isActivatingOrActive()
Returns:
true iff this instance is ACTIVE or ACTIVATING.

isPreparedOrActive

public boolean isPreparedOrActive()
Returns:
true iff this instance is PREPARED or ACTIVE.

isAtLeastPrepared

public boolean isAtLeastPrepared()
Returns:
true iff this instance is PREPARED or better.

isAtLeastPreparing

public boolean isAtLeastPreparing()
Returns:
true iff this instance is PREPARED or better.

isAtLeastCreated

public boolean isAtLeastCreated()
Returns:
true iff this instance is CREATED or better.