Class InputFieldDistDiscrete
java.lang.Object
nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
nl.tudelft.simulation.dsol.swing.gui.inputparameters.InputFieldDistDiscrete
- All Implemented Interfaces:
ItemListener
,EventListener
,InputField
Swing InputField for a selection of a continuous distribution, using a ComboBox.
Copyright (c) 2003-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
Copyright (c) 2003-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
- Author:
- Alexander Verbraeck
-
Field Summary
Modifier and TypeFieldDescriptioncombo box for the user interface.protected JPanel
cards for the distributions.protected Map<String,
InputParameterMapDistDiscrete> mapping from String value to original class.protected Map<String,
JTextField[]> fields for the parameters.Fields inherited from class nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
key, parameter
-
Constructor Summary
ConstructorDescriptionInputFieldDistDiscrete
(JPanel panel, InputParameterDistDiscreteSelection parameter) Create a string field on the screen. -
Method Summary
Methods inherited from class nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
getKey
-
Field Details
-
distComboBox
combo box for the user interface. -
textFields
fields for the parameters. -
selectionMap
mapping from String value to original class. -
distPanel
cards for the distributions.
-
-
Constructor Details
-
InputFieldDistDiscrete
Create a string field on the screen.- Parameters:
panel
- JPanel; panel to add the field toparameter
- InputParameterDistDiscreteSelection; the parameter
-
-
Method Details
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
getParameter
- Specified by:
getParameter
in interfaceInputField
- Overrides:
getParameter
in classAbstractInputField
- Returns:
- the input parameter for the field.
-
setDistParameterValues
- Throws:
InputParameterException
- when parameter not correctly entered
-