Search in sources :

Example 1 with TestingFrameworkWindow

use of cbit.vcell.client.desktop.TestingFrameworkWindow in project vcell by virtualcell.

the class ClientMDIManager method createTestingFramework.

private void createTestingFramework() {
    if (!getWindowsHash().containsKey(TESTING_FRAMEWORK_WINDOW_ID)) /*&& currentUser!=null && currentUser.isTestAccount()*/
    {
        // make the window
        TestingFrameworkWindow testingFrameworkWindow = new TestingFrameworkWindow();
        TestingFrameworkWindowPanel testingFrameworkWindowPanel = new TestingFrameworkWindowPanel();
        testingFrameworkWindow.setWorkArea(testingFrameworkWindowPanel);
        testingFrameworkWindow.setSize(JFRAME_SIZE);
        testingFrameworkWindow.setIconImage(VCellIcons.getJFrameImageIcon());
        BeanUtils.centerOnScreen(testingFrameworkWindow);
        // make the manager
        TestingFrameworkWindowManager windowManager = new TestingFrameworkWindowManager(testingFrameworkWindowPanel, getRequestManager());
        // keep track of things
        getWindowsHash().put(TESTING_FRAMEWORK_WINDOW_ID, testingFrameworkWindow);
        getManagersHash().put(TESTING_FRAMEWORK_WINDOW_ID, windowManager);
        // get window ready
        setCanonicalTitle(TESTING_FRAMEWORK_WINDOW_ID);
        testingFrameworkWindow.setTestingFrameworkWindowManager(windowManager);
        testingFrameworkWindowPanel.setTestingFrameworkWindowManager(windowManager);
        blockWindow(TESTING_FRAMEWORK_WINDOW_ID);
        // wiring up export and simStatus listener to update viewing simulations
        getRequestManager().getAsynchMessageManager().addSimStatusListener(windowManager);
        getRequestManager().getAsynchMessageManager().addExportListener(windowManager);
        getRequestManager().getAsynchMessageManager().addDataJobListener(windowManager);
        // listen for event when user clicks window close button
        testingFrameworkWindow.addWindowListener(windowListener);
    }
}
Also used : TestingFrameworkWindow(cbit.vcell.client.desktop.TestingFrameworkWindow) TestingFrameworkWindowPanel(cbit.vcell.client.desktop.TestingFrameworkWindowPanel)

Aggregations

TestingFrameworkWindow (cbit.vcell.client.desktop.TestingFrameworkWindow)1 TestingFrameworkWindowPanel (cbit.vcell.client.desktop.TestingFrameworkWindowPanel)1