Package org.opentrafficsim.demo
Class NetworksSwing.InputFieldSelectionMapRadio<K,T>
java.lang.Object
nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
org.opentrafficsim.demo.NetworksSwing.InputFieldSelectionMapRadio<K,T>
- Type Parameters:
K
- key of the selection mapT
- return type of the selection map
- All Implemented Interfaces:
InputField
- Enclosing class:
- NetworksSwing
public static class NetworksSwing.InputFieldSelectionMapRadio<K,T> extends AbstractInputField
Radio button selection map.
-
Field Summary
Fields inherited from class nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
key, parameter
-
Constructor Summary
Constructors Constructor Description InputFieldSelectionMapRadio(javax.swing.JPanel panel, InputParameterSelectionMap<K,T> parameter)
Create a string field on the screen. -
Method Summary
Modifier and Type Method Description InputParameterSelectionMap<K,T>
getParameter()
T
getValue()
Methods inherited from class nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
getKey
-
Constructor Details
-
InputFieldSelectionMapRadio
public InputFieldSelectionMapRadio(javax.swing.JPanel panel, InputParameterSelectionMap<K,T> parameter)Create a string field on the screen.- Parameters:
panel
- JPanel; panel to add the field toparameter
- InputParameterSelectionMap<K,T>; the parameter
-
-
Method Details
-
getParameter
- Specified by:
getParameter
in interfaceInputField
- Overrides:
getParameter
in classAbstractInputField
-
getValue
- Returns:
- the mapped value of the field in the gui, selected by the key's toString() value.
-