Package repast.simphony.ui.parameters
Class ParametersUI
java.lang.Object
repast.simphony.ui.parameters.ParametersUI
- Author:
- Nick Collier
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinder(String group, ParameterBinder creator, double displayOrder) voidCommits any changes made using the parameter JComponents to the specified params.createPanel(File parametersFile) Creates a JPanel that will display the specified parameters.createPanel(String parametersFile) Creates a JPanel that will display the specified parameters.Gets GUI display order of the current parameters.voidtoXML()Gets the parameter xml representation of the currently created parameter UI.voidupdatePanel(File paramsFile) Updates the panel with the latest parameters from the parameters file.
-
Field Details
-
DEFAULT_PARAM_GROUP
- See Also:
-
NAME
- See Also:
-
LAST
public static final double LAST- See Also:
-
-
Constructor Details
-
ParametersUI
-
-
Method Details
-
addBinder
-
updatePanel
Updates the panel with the latest parameters from the parameters file. -
createPanel
Creates a JPanel that will display the specified parameters. This assumes the passed in parameters are identical to those used to make the creators that were added with addBinder.- Parameters:
params-- Returns:
- the created JPanel.
- Throws:
XMLStreamExceptionFileNotFoundException
-
createPanel
Creates a JPanel that will display the specified parameters. This assumes the passed in parameters are identical to those used to make the creators that were added with addCreator.- Parameters:
params-- Returns:
- the created JPanel.
- Throws:
XMLStreamExceptionFileNotFoundException
-
commitParameters
public void commitParameters()Commits any changes made using the parameter JComponents to the specified params.- Parameters:
params- the Parameters to commmit the changes to
-
resetParameters
public void resetParameters() -
getDisplayOrder
Gets GUI display order of the current parameters.- Returns:
- the order (a double) of the display parameters by display id.
-
toXML
Gets the parameter xml representation of the currently created parameter UI. The current values in the UI will become the default values.- Returns:
- the XML.
-