Package systole.view.tabs.controllers

Examples of systole.view.tabs.controllers.AnalysisController


    /**
     *
     */
    public void newAnalysis() {
        AnalysisController anControl = new AnalysisController(this);
        if (anControl.createAnalysis()) {
            this.analysisList.add(anControl);
            this.mainForm.addAnalysisPanel(anControl.getFrmAnalysis());
        }
    }
View Full Code Here


    /**
     * @param analysis
     */
    public void openAnalysis(Analysis analysis) {
        AnalysisController anControl = new AnalysisController(this);
        this.analysisList.add(anControl);
        anControl.openAnalysis(analysis);
        this.mainForm.addAnalysisPanel(anControl.getFrmAnalysis());
    }
View Full Code Here

     *
     */
    public void closeAllAnalysis() {
        Iterator<AnalysisController> itClose = this.analysisList.iterator();
        while (itClose.hasNext()) {
            AnalysisController currentController = itClose.next();
            this.mainForm.getjTabPnlMain().setSelectedComponent(currentController.getFrmAnalysis());
            if (this.closeAnalysisOnExit(currentController)) {
                int closeTabNumber = this.mainForm.getjTabPnlMain().indexOfComponent(currentController.getFrmAnalysis());
                this.mainForm.getjTabPnlMain().removeTabAt(closeTabNumber);
            }
        }
    }
View Full Code Here

     */
    public void preview() {
        PreviewController previewController = new PreviewController();
        previewController.showForm(this.mainForm.getFrame());
        if (previewController.hasttoInitNewanalysis()) {
            AnalysisController anControl = new AnalysisController(this);
            if (anControl.createAnalysis(previewController.getRawSignal(), previewController.getFilePath())) {
                this.analysisList.add(anControl);
                this.mainForm.addAnalysisPanel(anControl.getFrmAnalysis());
            }
        }
        previewController = null;
    }
View Full Code Here

                    null, null));
        }
        Iterator<AnalysisController> itClose = this.analysisList.iterator();
        Vector<AnalysisController> toRemove = new Vector<AnalysisController>();
        while (itClose.hasNext()) {
            AnalysisController currentController = itClose.next();
            this.mainForm.getjTabPnlMain().setSelectedComponent(currentController.getFrmAnalysis());
            if (!this.closeAnalysisOnExit(currentController)) {
                this.analysisList.removeAll(toRemove);
                return false;
            }
            int closeTabNumber = this.mainForm.getjTabPnlMain().indexOfComponent(currentController.getFrmAnalysis());
            if (closeTabNumber != -1) {
                this.mainForm.getjTabPnlMain().removeTabAt(closeTabNumber);
                toRemove.add(currentController);
            }
        }
View Full Code Here

TOP

Related Classes of systole.view.tabs.controllers.AnalysisController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.