Title: Parameter selection Dialog Factory
Description: Creates a modal dialog box into main window that displays given panel. This class is used to enter imput parameters of the model.
238239240241242243244245246247248
// end public Mediator(final JmtJGraph graph, MainWindow mainWindow) { this.mainWindow = mainWindow; dialogFactory = new DialogFactory(mainWindow); cellFactory = new CellFactory(this); this.graph = graph; closeModel = new CloseModel(this); newModel = new NewModel(this); openHelp = new OpenHelp(this);
413414415416417418419420421422423
{ this.timer.startTimer(); this.executor.startExecutor(); this.transferFactory.openFactory(); this.dialogFactory = new DialogFactory(this); this.loginWork = new LoginWork(this, Presence.ONLINE); this.transferFactory.setFetionContext(this); this.store.init(user);
241824192420242124222423242424252426242724282429
// column is of Reference type "Button" and the name of the column starts // the the letters "Dlg". The name of the column can then be added to the // DialogFactory which will return the relevant dialog for the column name. else if (col.startsWith("Dlg")) { DialogFactory factory = new DialogFactory(); CDialog dialog = factory.createDialog(col, m_curTab); if (dialog != null) { dialog.setVisible(true); dialog.dispose(); m_curTab.dataRefresh();