Code for editing a Das2Server parameters argument. This is a somewhat arbitary control, but the DSDF may try to describe a GUI, using the spec at https://github.com/das-developers/das2docs/wiki/Structured-Sub%E2%80%90values-for-Params Das2ServerGUI x = new Das2ServerGUI(); String dsdf = "param_01 = '1.5V_REF | Simulate +1.8 monitor'\n" + "param_02 = '1.5V_WvFE'\n" + "param_03 = '1.5V_Y180'\n" + "param_04 = '1.8U | Power Supply'\n" + "param_05 = '1.8V_MEM'"; x.setSpecification(dsdf); x.setParameters("1.5V_REF 1.5V_REF 1.8V_MEM"); if (JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(null, x.panel)) { System.err.println(x.getParameters()); }
return the panel. See the javadoc for how this is to be called. Note this will typically need to be put into a scrollpane.
set the DSDF specification for the parameters. This can be an XML document or a list of IDL name/value pairs.