org.das2.client.Das2ServerGUI

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()); }

Das2ServerGUI( )


getPanel

getPanel( ) → JPanel

return the panel. See the javadoc for how this is to be called. Note this will typically need to be put into a scrollpane.

Returns:

a javax.swing.JPanel

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getParameters

getParameters( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


main

main( java.lang.String[] args ) → void

Parameters

args - a java.lang.String[]

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setParameters

setParameters( String paramz ) → void

Parameters

paramz - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSpecification

setSpecification( String sss ) → void

set the DSDF specification for the parameters. This can be an XML document or a list of IDL name/value pairs.

Parameters

sss - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]