Search in sources :

Example 1 with FieldDataWindow

use of cbit.vcell.field.gui.FieldDataWindow in project vcell by virtualcell.

the class ClientMDIManager method createFieldData.

// private void createBioNetGen( ) {
// 
// if (! getWindowsHash().containsKey(BIONETGEN_WINDOW_ID) ) {
// // make the window
// BNGWindow bngWindow = new BNGWindow();
// cbit.vcell.client.bionetgen.BNGOutputPanel bngOutputPanel = new cbit.vcell.client.bionetgen.BNGOutputPanel();
// bngWindow.setWorkArea(bngOutputPanel);
// bngWindow.setSize(JFRAME_SIZE);
// bngWindow.setIconImage(VCellIcons.getJFrameImageIcon());
// BeanUtils.centerOnScreen(bngWindow);
// // make the manager
// BNGWindowManager windowManager = new BNGWindowManager(bngOutputPanel, getRequestManager());
// // keep track of things
// getWindowsHash().put(BIONETGEN_WINDOW_ID, bngWindow);
// getManagersHash().put(BIONETGEN_WINDOW_ID, windowManager);
// // get window ready
// setCanonicalTitle(BIONETGEN_WINDOW_ID);
// // set bngService for bngOutputPanel - thro' clientServerManager or separate manager for bionetgen?
// bngWindow.setBngWindowManager(windowManager);
// bngOutputPanel.setBngWindowManager(windowManager);
// //		blockWindow(BIONETGEN_WINDOW_ID);
// 
// // listen for event when user clicks window close button
// bngWindow.addWindowListener(windowListener);
// }
// }
private void createFieldData() {
    if (!getWindowsHash().containsKey(FIELDDATA_WINDOW_ID)) {
        // make the window
        FieldDataWindow fieldDataWindow = new FieldDataWindow();
        FieldDataGUIPanel fieldDataGUIPanel = new FieldDataGUIPanel();
        fieldDataWindow.setWorkArea(fieldDataGUIPanel);
        fieldDataWindow.pack();
        fieldDataWindow.setIconImage(VCellIcons.getJFrameImageIcon());
        BeanUtils.centerOnScreen(fieldDataWindow);
        // make the manager
        FieldDataWindowManager fieldDataWindowManager = new FieldDataWindowManager(fieldDataGUIPanel, getRequestManager());
        // keep track of things
        getWindowsHash().put(FIELDDATA_WINDOW_ID, fieldDataWindow);
        getManagersHash().put(FIELDDATA_WINDOW_ID, fieldDataWindowManager);
        // get window ready
        setCanonicalTitle(FIELDDATA_WINDOW_ID);
        fieldDataWindow.setFieldDataWindowManager(fieldDataWindowManager);
        fieldDataGUIPanel.setFieldDataWindowManager(fieldDataWindowManager);
        blockWindow(FIELDDATA_WINDOW_ID);
        // listen for event when user clicks window close button
        fieldDataWindow.addWindowListener(windowListener);
    }
}
Also used : FieldDataWindow(cbit.vcell.field.gui.FieldDataWindow) FieldDataGUIPanel(cbit.vcell.field.gui.FieldDataGUIPanel)

Aggregations

FieldDataGUIPanel (cbit.vcell.field.gui.FieldDataGUIPanel)1 FieldDataWindow (cbit.vcell.field.gui.FieldDataWindow)1