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(JPanel panel, InputParameterSelectionMap<K,T> parameter)
Create a string field on the screen.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
InputFieldSelectionMapRadio
public InputFieldSelectionMapRadio(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 Detail
-
getParameter
public InputParameterSelectionMap<K,T> getParameter()
- Specified by:
getParameter
in interfaceInputField
- Overrides:
getParameter
in classAbstractInputField
-
getValue
public T getValue()
- Returns:
- the mapped value of the field in the gui, selected by the key's toString() value.
-
-