Class VariableChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class VariableChooser extends JPanel
The VariableChooser is a simple panel that displays a list of variable names and allows the user to select one of the variables. The chooser signals a change in the selected variable by firing a PropertyChangeEvent whose property name is VariableChooser.VARIABLE_PROPERTY, and new value contains the variable name.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Field Details

  • Constructor Details

    • VariableChooser

      public VariableChooser(List variableList)
      Creates a new variable chooser panel. The first variable is initially selected.
      Parameters:
      variableList - the list of variables to make available.
  • Method Details

    • getVariable

      public String getVariable()
      Gets the current variable name.
    • dispose

      public void dispose()
      Disposes of any resources used by this chooser.
      Since:
      3.3.1
    • main

      public static void main(String[] argv)
      Tests this class.
      Parameters:
      argv - the array of command line parameters.