com.sdm.quasar.client.core.dialogbase.services
Interface ReactivationService

All Superinterfaces:
Service
All Known Implementing Classes:
ReactivationFeature

public interface ReactivationService
extends Service

This Service is for reactivating i.e. deiconify or bring to front, sub dialogs. The Service is supported by a parent dialog for children to registrate. A registrated sub dialog will be called to reactivate, if reactivate(DialogInstanceId) is triggerd.

Author:
Martin Haft

Nested Class Summary
static interface ReactivationService.ReactivationCallback
          This call back is supported by the dialog that register at this service.
 
Method Summary
 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
 

Method Detail

reactivate

public void reactivate(DialogInstanceId dialogInstanceId)
When registrated, the specified dialog is called to reactivate itselfe

Parameters:
dialogInstanceId - the dialog instance id of the dialog that should reactivate

registerForReactivation

public void registerForReactivation(DialogInstanceId dialogInstanceId,
                                    ReactivationService.ReactivationCallback reactivationCallback)
Register for Reactivation

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)
Unregister for Reactivation

Parameters:
dialogInstanceId - the dialog instance id of the unregistrated dialog