public class MainDc extends Object implements Dc, AppEventSupport, SwingXMLBuilder.Backlink
| Constructor and Description |
|---|
MainDc() |
| Modifier and Type | Method and Description |
|---|---|
void |
dataSourceChanged(DataSourceChanged pDataSourceChanged)
AppEvent callback for the DataSourceChanged event, we re-load
the current data.
|
void |
exeProgram(String pCommand)
Called by our presentation component to execute an external command.
|
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<FilteredTableModel> pResponse)
Called by the Dispatcher after the request dispatched in openFile,
openTree or dataSourceChanged finished.
|
void |
openFile(File pFile)
Called by our presentation component to load a file, we also set the
file name as the new default file name.
|
void |
openTree(File pFile)
Called by our presentation component to load a tree, we also set the
tree name as the new default tree name.
|
void |
postAppEvent(AppEvent pAppEvent)
Process an AppEvent.
|
void |
quit()
Called by our presentation component to quit the application.
|
void |
setSwingXMLBuilder(SwingXMLBuilder pBuilder)
When a SwingXMLBuilder creates an object of ourselves, we want to
know that builder.
|
public void setSwingXMLBuilder(SwingXMLBuilder pBuilder)
setSwingXMLBuilder in interface SwingXMLBuilder.BacklinkpBuilder - the builder that created this objectpublic void postAppEvent(AppEvent pAppEvent)
postAppEvent in interface AppEventSupportpAppEvent - event that should be routed/processespublic void init(Dc pParent, Map<String,? super Object> pArgs)
public void openFile(File pFile)
pFile - the file we should loadpublic void openTree(File pFile)
pFile - the tree root we should loadpublic void loadResponse(Response<FilteredTableModel> pResponse)
pResponse - the response, containing either a FilteredTableModel as result
or an Exception as an error.public void quit()
public void dataSourceChanged(DataSourceChanged pDataSourceChanged)
pDataSourceChanged - not usedpublic void exeProgram(String pCommand)
pCommand - the command string to executeCopyright © 2013–2025 Jürgen Zeller (privat). All rights reserved.