|
|||||||||||
| 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.dialogs.structured.StructuredDialog
This is an example class demonstrates how to build a structured dialog (with presentation and dialog core). This class represents the dialog core.
The configuration of this dialog installs two features:
StructuredDialog) representing the dialog core with dialog data
and dialog actions,
StructuredDialogPresentation
which uses the dialog core to access the data and to execute an action.
DialogControl.getFeature( StructuredDialog.class)
In this case, the data is a simple data bean
(StructuredDialogData)
which is stored in an observable com.sdm.util.model.ValueModel
that can be accessed using getStructuredDialogDataValueModel().
Alternatively you can use a separate model which can be either accessed
by a getter on the dialog core or provided as a separate feature.
In a more complex version the model can even be a
DataManager.
The action is provided in form of a simple method
StructuredDialogActions.changeMessage().
Alternatively you may use a
com.sdm.quasar.client.core.actions.ActionProvider or
com.sdm.quasar.client.core.events.StatefulEventProcessor as a dialog event mechanism.
| Constructor Summary | |
StructuredDialog()
|
|
| Method Summary | |
void |
changeMessage()
Request to change the message |
protected void |
dispose()
Called when the feature or dialog is disposed. |
ValueModel |
getStructuredDialogDataValueModel()
Provide the StructuredDialogData wrapped in a ValueHolder. |
protected void |
init()
Called when the feature is initializing. |
| 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 StructuredDialog()
| 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 ValueModel getStructuredDialogDataValueModel()
StructuredDialogData wrapped in a ValueHolder.
public void changeMessage()
StructuredDialogActions
changeMessage in interface StructuredDialogActionsStructuredDialogActions.changeMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||