public XMLToolPanel(SessionShare ss, String pname, String fname) { this.vnmrIf = (ButtonIF) Util.getViewArea().getDefaultExp(); this.sshare = ss; this.pname = pname; this.fname = fname; pane = new ParamPanel(); pane.setPanelFile(fname); pane.setPanelName(pname); pane.setType(ParamInfo.TOOLPANEL); pane.setLayoutName("toolPanels"); pane.setAttributes(null); paramsLayout = new VRubberPanLayout(); if (!Util.isImagingUser()) paramsLayout.setSquish(1.0); DisplayOptions.addChangeListener(this); ExpPanel.addStatusListener(this); // ExpPanel.addExpListener(this); setLayout(new xpPanelLayout()); } // constructor
private String getLocatorName() { String name = "Holding"; if (Util.isImagingUser()) name = "Study"; if (Util.isWalkupUser()) name = "Protocols"; return Util.getLabelString(name); }