|
|||||||||||
| 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.StructuredDialogPresentation
Simple presentation to demonstrate the separation of dialog core and presentation in a structured dialog.
Our visual representation is basically a label and a button.
The label is set up to reflect the value of the dialog core's
StructuredDialogData.getMessage()
(connected using the com.sdm.util.model.ValueModel observer mechanism).
When the button is pressed, the dialog core's action is called
(StructuredDialogActions.changeMessage().
The implementation accesses the dialog core
using #getStructuredDialog().
The visual representation is offered for embedding using the
com.sdm.quasar.client.core.embedding.services.VisualRepresentationFeature.
| Constructor Summary | |
StructuredDialogPresentation()
|
|
| Method Summary | |
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected void |
init()
Called when the feature is initializing. |
protected void |
prepare()
Creates the visual representation by calling #initVisualRepresentation()
and setting it to the VisualRepresentationFeature. |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, release |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StructuredDialogPresentation()
| 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()protected void prepare()
#initVisualRepresentation()
and setting it to the VisualRepresentationFeature.
prepare in class AbstractFeature
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||