## org.autoplot.jythonsupport.ui.ParametersFormPanel

GUI component for controlling script parameters.

## ParametersFormPanel( )

## doVariables

doVariables( java.util.Map env, java.io.File f, java.util.Map params, javax.swing.JPanel paramsPanel ) → org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData

Populates the JPanel with options. See org.autoplot.jythonsupport.ui.Util.createForm.

### Parameters

env - environment variables such as PWD and dom.
f - the file containing the script.
params - map containing any settings for the variables.
paramsPanel - JPanel to populate with the GUI items. (Can be null.)

### Returns:

the FormData from the initial view, since some clients will not show a GUI when there are no parameters.
[search for examples] [view on GitHub] [view on old javadoc] [view source]
doVariables( String src, java.util.Map params, javax.swing.JPanel zparamsPanel ) → org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData [view source]

## doVariables

doVariables( java.util.Map env, String src, java.util.Map params, javax.swing.JPanel zparamsPanel ) → org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData

Populates the JPanel with options. See org.autoplot.jythonsupport.ui.Util.createForm, this is only used with the .jyds. TODO: Fix this!!!

### Parameters

env - null or an map containing variables like "dom" and "PWD"
src - the script loaded into a string.
params - map containing any settings for the variables.
zparamsPanel - JPanel to populate with the GUI items. (Can be null.)

### Returns:

the FormData from the initial view, since some clients will not show a GUI when there are no parameters.

### See Also:

org.autoplot.jythonsupport.ui.Util#getParams(java.util.Map, java.lang.String, java.util.Map, org.das2.util.monitor.ProgressMonitor)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getFormData

getFormData( ) → org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData

return the current state of the form data.

### Returns:

an org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## redoVariables

redoVariables( java.util.Map env, String src, java.util.Map params, javax.swing.JPanel paramsPanel ) → void

Repopulates the JPanel with options, to be used when the parameters can change the params that are read in.

### Parameters

env - environment variables such as PWD and dom.
src - the script loaded into a string.
params - map containing any settings for the variables.
paramsPanel - the GUI which needs to be revalidated.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## resetVariables

resetVariables( org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData fd, java.util.Map params ) → void

extract the data from the form into params. Note, strings and URIs are quoted, not sure why.

### Parameters

fd - form data containing GUI references
params - map to contain the settings for each parameter, reading from the GUI.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]