public class UseCase1Dc extends AbstractDialogDc implements DialogDc
mAppEventSupport, mDialogManager| Constructor and Description |
|---|
UseCase1Dc() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPassivate()
We can only passivate if there is no dirty data
|
<T> void |
dataLoaded(Response<T> pResponse)
Callback from the Request issued in loadData().
|
void |
dataSaved(Response<?> pResponse)
Callback from the Request issued in saveData().
|
void |
dispose(Map<String,? super Object> pArgs)
Called from the dialog coordinator to tell the dialog to cleanup all
resources.
|
void |
doActivate(Map<String,? super Object> pArgs)
Called from the dialog coordinator to tell the dialog to switch
to the active state.
|
void |
doPassivate(Map<String,? super Object> pArgs)
Called from the dialog coordinator to tell the dialog to switch
to the passive state.
|
Object |
getVisualPresentation()
Called from the dialog coordinater in the initialized, active or passive
state to get the visual representation for this dialog.
|
void |
init(Dc pParent,
Map<String,? super Object> pArgs)
This method is called by the parent dialog controller during
the initialisation phase of an application.
|
void |
loadData()
Method for our presentation to initiate the data loading.
|
void |
monitorVMChange(ChangeEvent pEvent)
Callback to test ValueModel callbacks via XML.
|
void |
saveData()
Method for our presentation to initiate the data saving.
|
postAppEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostAppEventpublic void init(Dc pParent, Map<String,? super Object> pArgs)
init in interface Dcinit in class AbstractDialogDcpParent - our non-null parentpArgs - variable argument list modeled as a key/value map, never null.public Object getVisualPresentation()
getVisualPresentation in interface DialogDcpublic boolean canPassivate()
canPassivate in interface SimpleLifeCyclecanPassivate in class AbstractDialogDcpublic void doActivate(Map<String,? super Object> pArgs)
doActivate in interface SimpleLifeCyclepArgs - arguments, key is a String, value is any suitable objekt for the keypublic void doPassivate(Map<String,? super Object> pArgs)
doPassivate in interface SimpleLifeCyclepArgs - arguments, key is a String, value is any suitable objekt for the keypublic void dispose(Map<String,? super Object> pArgs)
dispose in interface Disposabledispose in class AbstractDialogDcpArgs - arguments, key is a String, value is any suitable objekt for the keypublic void loadData()
public <T> void dataLoaded(Response<T> pResponse)
pResponse - the response containing either the result or an errorpublic void saveData()
public void dataSaved(Response<?> pResponse)
pResponse - the response containing either the result or an errorpublic void monitorVMChange(ChangeEvent pEvent)
pEvent - the change eventCopyright © 2016 Jürgen Zeller (privat). All rights reserved.