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 map
T - return type of the selection map
All Implemented Interfaces:
nl.tudelft.simulation.dsol.swing.gui.inputparameters.InputField
Enclosing class:
NetworksSwing

public static class NetworksSwing.InputFieldSelectionMapRadio<K,T> extends nl.tudelft.simulation.dsol.swing.gui.inputparameters.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, nl.tudelft.simulation.dsol.model.inputparameters.InputParameterSelectionMap<K,T> parameter)
    Create a string field on the screen.
  • Method Summary

    Modifier and Type
    Method
    Description
    nl.tudelft.simulation.dsol.model.inputparameters.InputParameterSelectionMap<K,T>
     

    Methods inherited from class nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField

    getKey

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InputFieldSelectionMapRadio

      public InputFieldSelectionMapRadio(JPanel panel, nl.tudelft.simulation.dsol.model.inputparameters.InputParameterSelectionMap<K,T> parameter)
      Create a string field on the screen.
      Parameters:
      panel - JPanel; panel to add the field to
      parameter - InputParameterSelectionMap<K,T>; the parameter
  • Method Details

    • getParameter

      public nl.tudelft.simulation.dsol.model.inputparameters.InputParameterSelectionMap<K,T> getParameter()
      Specified by:
      getParameter in interface nl.tudelft.simulation.dsol.swing.gui.inputparameters.InputField
      Overrides:
      getParameter in class nl.tudelft.simulation.dsol.swing.gui.inputparameters.AbstractInputField
    • getValue

      public T getValue()
      Returns:
      the mapped value of the field in the gui, selected by the key's toString() value.