|
|||||||||||
| 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.CloseObjectionFeature
Offers a default implementation of the CloseObjectionService 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.CloseObjectionService |
CloseObjectionService.CloseObjectionCallback |
| Constructor Summary | |
CloseObjectionFeature()
|
|
| Method Summary | |
boolean |
canClose(DialogInstanceId diid)
Queries the registered objection callbacks that are concerned with closing the dialog with the given diid. |
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,
CloseObjectionService.CloseObjectionCallback callback)
Registers a callback that is questioned before the dialog will be closed. |
void |
unregisterObjectionCallback(DialogInstanceId diid,
CloseObjectionService.CloseObjectionCallback 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 CloseObjectionFeature()
| 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,
CloseObjectionService.CloseObjectionCallback callback)
CloseObjectionServiceNote that a dialog should unregister the callback when it is released.
registerObjectionCallback in interface CloseObjectionServicediid - the id of the dialog instance that is concernedcallback - the callback object to be questionedCloseObjectionService.registerObjectionCallback(com.sdm.quasar.client.core.dialog.DialogInstanceId, com.sdm.quasar.client.core.dialogbase.services.CloseObjectionService.CloseObjectionCallback)
public void unregisterObjectionCallback(DialogInstanceId diid,
CloseObjectionService.CloseObjectionCallback callback)
CloseObjectionService
unregisterObjectionCallback in interface CloseObjectionServicediid - the id of the dialog instance that is concernedcallback - the callback object to be removedCloseObjectionService.unregisterObjectionCallback(com.sdm.quasar.client.core.dialog.DialogInstanceId, com.sdm.quasar.client.core.dialogbase.services.CloseObjectionService.CloseObjectionCallback)public boolean canClose(DialogInstanceId diid)
CloseObjectionService
canClose in interface CloseObjectionServicediid - the instance id of the dialog that should be closed
true iff no registered callback has objectedCloseObjectionService.canClose(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 | ||||||||||