|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.core.dialogbase.features.ActivationObjectionFeature
Offers a default implementation of the ActivationObjectionService to
a dialog.
To use the feature, a DialogHierarchyService has to be installed
(which is a system core service).
| Nested Class Summary |
| Nested classes inherited from class com.sdm.quasar.client.core.dialogbase.services.ActivationObjectionService |
ActivationObjectionService.DeactivationObjectionCallback |
| Constructor Summary | |
ActivationObjectionFeature()
|
|
| Method Summary | |
boolean |
canDeactivate(DialogInstanceId diid)
Queries the registered objection callbacks that are concerned with a deactivation of the given diid to see if any object to deactivation. |
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected DialogHierarchyService |
getDialogHierarchyService()
Returns the DialogHierarchyService to be used. |
protected void |
init()
Called when the feature is initializing. |
void |
registerObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
Registers a callback that is questioned before the dialog will be deactivated or released. |
void |
unregisterObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
Unregisters a callback object. |
| 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 |
public ActivationObjectionFeature()
| Method Detail |
protected void init()
AbstractFeatureDialogControl 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.
init in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#init()
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptioncom.sdm.quasar.client.core.dialog.features.AbstractFeature#dispose()
public void registerObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
ActivationObjectionServiceNote that a dialog should unregister the callback when it is released.
registerObjectionCallback in interface ActivationObjectionServicediid - the id of the dialog instance that is concernedcallback - the callback object to be questionedActivationObjectionService.registerObjectionCallback(com.sdm.quasar.client.core.dialog.DialogInstanceId, com.sdm.quasar.client.core.dialogbase.services.ActivationObjectionService.DeactivationObjectionCallback)
public void unregisterObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
ActivationObjectionService
unregisterObjectionCallback in interface ActivationObjectionServicediid - the id of the dialog instance that is concernedcallback - the callback object to be removedActivationObjectionService.unregisterObjectionCallback(com.sdm.quasar.client.core.dialog.DialogInstanceId, com.sdm.quasar.client.core.dialogbase.services.ActivationObjectionService.DeactivationObjectionCallback)public boolean canDeactivate(DialogInstanceId diid)
ActivationObjectionService
canDeactivate in interface ActivationObjectionServicediid - the instance id of the dialog that should be deactivated
ActivationObjectionService.canDeactivate(com.sdm.quasar.client.core.dialog.DialogInstanceId)protected DialogHierarchyService getDialogHierarchyService()
DialogHierarchyService to be used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||