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

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.lifecycle.LifeCycleAdapter
All Implemented Interfaces:
LifeCycleListener

public class LifeCycleAdapter
extends java.lang.Object
implements LifeCycleListener

A LifeCycleListener implementation, that adapts the fine-grained lifecycle notifications to more coarse event methods, that may be overwritten by implementors.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
LifeCycleAdapter()
          Creates a new LifeCycleAdapter.
 
Method Summary
 void activated(DialogInstanceId diid)
          Listener Method for the dialog has been activated
 void created(DialogInstanceId diid)
          Listener Method for the dialog has been created
 void deactivated(DialogInstanceId diid)
          Listener Method for the dialog has been deactivated
 void disposed(DialogInstanceId diid)
          Listener Method for the dialog has been disposed
 void lifeCycleStateChanged(DialogInstanceId diid, LifeCycleState state, LifeCycleState previousState, LifeCycleCompletionLevel completionLevel)
          Notification: A dialog has changed from DialogLifeCycleState fromDialogLifeCycleState to
 void prepared(DialogInstanceId diid)
          Listener Method for the dialog has been prepared
 void released(DialogInstanceId diid)
          Listener Method for the dialog has been released
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycleAdapter

public LifeCycleAdapter()
Creates a new LifeCycleAdapter.

Method Detail

lifeCycleStateChanged

public void lifeCycleStateChanged(DialogInstanceId diid,
                                  LifeCycleState state,
                                  LifeCycleState previousState,
                                  LifeCycleCompletionLevel completionLevel)
Description copied from interface: LifeCycleListener
Notification: A dialog has changed from DialogLifeCycleState fromDialogLifeCycleState to
Specified by:
lifeCycleStateChanged in interface LifeCycleListener
Parameters:
diid - The instance is of the dialog, that has changed the state
state - the LifeCycleState state
previousState - the previous LifeCycleState
completionLevel - the completion level of the state if in a transition state
See Also:
LifeCycleListener.lifeCycleStateChanged(com.sdm.quasar.client.core.dialog.DialogInstanceId, com.sdm.quasar.client.core.dialog.lifecycle.LifeCycleState, com.sdm.quasar.client.core.dialog.lifecycle.LifeCycleState, com.sdm.quasar.client.core.dialog.lifecycle.LifeCycleCompletionLevel)

created

public void created(DialogInstanceId diid)
Listener Method for the dialog has been created

Parameters:
diid - Instance Id of the dialog that has been created

prepared

public void prepared(DialogInstanceId diid)
Listener Method for the dialog has been prepared

Parameters:
diid - Instance Id of the dialog that has been prepared

activated

public void activated(DialogInstanceId diid)
Listener Method for the dialog has been activated

Parameters:
diid - Instance Id of the dialog that has been activated

deactivated

public void deactivated(DialogInstanceId diid)
Listener Method for the dialog has been deactivated

Parameters:
diid - Instance Id of the dialog that has been deactivated

released

public void released(DialogInstanceId diid)
Listener Method for the dialog has been released

Parameters:
diid - Instance Id of the dialog that has been released

disposed

public void disposed(DialogInstanceId diid)
Listener Method for the dialog has been disposed

Parameters:
diid - Instance Id of the dialog that has been disposed