|
|||||||||||
| 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.dialogsupport.features.AbstractPresentationFeature
Abstract Feature that supports convenience methods
and a typical initialization for a dialog presentation.
| Field Summary | |
protected java.util.List |
disposables
|
| Constructor Summary | |
AbstractPresentationFeature()
|
|
| Method Summary | |
protected abstract void |
bindActions()
Binds the actions from the dialog core (e.g. within an action or command manager) to the visual representation. |
protected abstract void |
bindData()
Binds the data from the dialog core (e.g. within a data manager) to the visual representation. |
protected abstract void |
configureStates()
Configures states from the dialog core and presentation states and binds them to the visual representation. |
protected CommandManagerFeature |
getCommandManagerFeature()
Returns the Feature instance. |
protected DataManager |
getDataManager()
Convenience methof for access to the DataManager |
protected DataManagerFeature |
getDataManagerFeature()
Returns the data manager feature instance where our data is stored. |
protected java.lang.Object |
getValue(java.lang.String key)
Convenience method to to get a value from the data manager |
protected void |
prepare()
Called when the dialog is prepared. |
protected void |
registerDisposable(Disposable disposable)
Registeres Disposables wil be disposes automatically
when this feature is released |
protected void |
release()
Called when the dialog is released. |
protected void |
unregisterDisposable(Disposable disposable)
Unregister a former registered Disposable |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
activate, attachDialogControl, collectSystemInfo, deactivate, dispose, disposeFeature, getDialogControl, init, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List disposables
| Constructor Detail |
public AbstractPresentationFeature()
| Method Detail |
protected void prepare()
AbstractFeatureLifeCycle.prepare(),
e.g. gain resource and provide services for childs.
The default implementation in AbstractFeature does nothing.
prepare in class AbstractFeatureprotected void release()
AbstractFeatureLifeCycle.release()(),
e.g. unregister services.
The default implementation in AbstractFeature does nothing.
release in class AbstractFeatureprotected abstract void bindData()
prepare() method
protected abstract void bindActions()
prepare() method,
after bindData() has been called.
protected abstract void configureStates()
prepare() method,
after bindData() and bindActions() has been called.
protected void registerDisposable(Disposable disposable)
Disposables wil be disposes automatically
when this feature is released
disposable - Disposable to be disposed when this Feature is released.protected void unregisterDisposable(Disposable disposable)
Disposable
disposable - the Disposable to be unregisteredprotected DataManagerFeature getDataManagerFeature()
FeatureManager.requireFeature(Class)
for more information about the process.
protected DataManager getDataManager()
DataManager
protected java.lang.Object getValue(java.lang.String key)
key - the key to the value in the data manager
protected CommandManagerFeature getCommandManagerFeature()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||