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
doVariables( java.util.Map env, String src, java.util.Map params, javax.swing.JPanel zparamsPanel ) → org.autoplot.jythonsupport.ui.ParametersFormPanel.FormData
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]