Package repast.simphony.ui.parameters
Class ParametersUI
java.lang.Object
repast.simphony.ui.parameters.ParametersUI
- Author:
- Nick Collier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBinder
(String group, ParameterBinder creator, double displayOrder) void
Commits 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.void
toXML()
Gets the parameter xml representation of the currently created parameter UI.void
updatePanel
(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:
XMLStreamException
FileNotFoundException
-
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:
XMLStreamException
FileNotFoundException
-
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.
-