public class MainDc extends Object implements Dc, AppEventSupport
| Constructor and Description |
|---|
MainDc(MainPc pPc)
Create a new dialog controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataSourceChanged(DataSourceChanged pDataSourceChanged)
AppEvent callback for the DataSourceChanged event, we re-load
the current data.
|
void |
init(Dc pParent,
Map<String,? super Object> pArgs)
This method initializes the AppEvent handling, loads the first
data, initializes all sub-dialog components and then initializes
its presentation component.
|
void |
loadResponse(Response<FilteredObservableList> pResponse)
Called by the Dispatcher after the request dispatched in openFile,
openTree or dataSourceChanged finished.
|
void |
openTree(File pDirectory)
Called from our presentation peer to load a tree, we also set the
file name as the new default file name.
|
void |
postAppEvent(AppEvent pAppEvent)
Process an AppEvent.
|
public MainDc(MainPc pPc)
pPc - our presentation controller peer, must not be nullpublic void init(Dc pParent, Map<String,? super Object> pArgs)
public void postAppEvent(AppEvent pAppEvent)
postAppEvent in interface AppEventSupportpAppEvent - event that should be routed/processespublic void dataSourceChanged(DataSourceChanged pDataSourceChanged)
pDataSourceChanged - not usedpublic void openTree(File pDirectory)
pDirectory - the dir we should load, must not be nullpublic void loadResponse(Response<FilteredObservableList> pResponse)
pResponse - the response, containing either a FilteredObservableList as result
or an Exception as an error.Copyright © 2017 Jürgen Zeller (privat). All rights reserved.