|
|||||||||||
| 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.showcase.swing.embedding.modal.ModalDialog
This is an example of a dialog that is modal and has a return value.
The dialog offers an input field and two buttons that close the window, one committing the input and on cancelling it.
This dialog offers access to its commit state and the user's input
using ValueService.
| Constructor Summary | |
ModalDialog()
|
|
| Method Summary | |
void |
actionBinding()
|
protected void |
activate()
Show our visual representation, the modal dialog |
protected void |
deactivate()
Hide our visual representation |
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected void |
handleCancel()
Called when the user presses #cancelButton
or closes the window, requests deactivation using
ActivationService.requestDeactivate(). |
protected void |
handleOk()
Called when the user presses #okButton, requests deactivation using
ActivationService.requestDeactivate(). |
protected void |
init()
Called when the feature is initializing. |
protected void |
prepare()
Creates and initializes our visual representation. |
protected void |
release()
Called when the dialog is released. |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
attachDialogControl, collectSystemInfo, disposeFeature, getDialogControl, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModalDialog()
| 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 AbstractFeature
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptionprotected void prepare()
prepare in class AbstractFeaturepublic void actionBinding()
protected void handleCancel()
#cancelButton
or closes the window, requests deactivation using
ActivationService.requestDeactivate().
protected void handleOk()
#okButton, requests deactivation using
ActivationService.requestDeactivate().
protected void activate()
activate in class AbstractFeatureprotected void deactivate()
deactivate in class AbstractFeatureprotected void release()
AbstractFeatureLifeCycle.release()(),
e.g. unregister services.
The default implementation in AbstractFeature does nothing.
release in class AbstractFeature
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||