com.sdm.quasar.client.core.dialogbase.features
Class ReactivationFeature

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.core.dialogbase.features.ReactivationFeature
All Implemented Interfaces:
Feature, ReactivationService, Service, SystemInfoProvider

public class ReactivationFeature
extends AbstractFeature
implements ReactivationService

A Feature implementing the ReactivationService.

Author:
Martin Haft

Nested Class Summary
 
Nested classes inherited from class com.sdm.quasar.client.core.dialogbase.services.ReactivationService
ReactivationService.ReactivationCallback
 
Constructor Summary
ReactivationFeature()
           
 
Method Summary
protected  void dispose()
          Called when the feature or dialog is disposed.
protected  void init()
          Called when the feature is initializing.
 void reactivate(DialogInstanceId dialogInstanceId)
          When registrated, the specified dialog is called to reactivate itselfe
 void registerForReactivation(DialogInstanceId dialogInstanceId, ReactivationService.ReactivationCallback reactivationCallback)
          Register for Reactivation
 void unregisterForReactivation(DialogInstanceId dialogInstanceId)
          Unregister for Reactivation
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReactivationFeature

public ReactivationFeature()
Method Detail

dispose

protected void dispose()
                throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Specified by:
init in class AbstractFeature

reactivate

public void reactivate(DialogInstanceId dialogInstanceId)
Description copied from interface: ReactivationService
When registrated, the specified dialog is called to reactivate itselfe

Specified by:
reactivate in interface ReactivationService
Parameters:
dialogInstanceId - the dialog instance id of the dialog that should reactivate

registerForReactivation

public void registerForReactivation(DialogInstanceId dialogInstanceId,
                                    ReactivationService.ReactivationCallback reactivationCallback)
Description copied from interface: ReactivationService
Register for Reactivation

Specified by:
registerForReactivation in interface ReactivationService
Parameters:
dialogInstanceId - the dialog instance id of the registrated dialog
reactivationCallback - a call back object, that is called, when the dialog should reactivate

unregisterForReactivation

public void unregisterForReactivation(DialogInstanceId dialogInstanceId)
Description copied from interface: ReactivationService
Unregister for Reactivation

Specified by:
unregisterForReactivation in interface ReactivationService
Parameters:
dialogInstanceId - the dialog instance id of the unregistrated dialog