Class VariableOptionPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class VariableOptionPanel extends JPanel
The VariableOptionPanel class allows the user to choose a subset from a list of variables.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • VariableOptionPanel

      public VariableOptionPanel(List variableNames, boolean isSingle)
      Creates a new variable option panel.
      Parameters:
      variableNames - the list of variables names to choose from.
      isSingle - the single selection flag, true to allow only single selections.
  • Method Details

    • getVariables

      public List getVariables()
      Gets the list of selected variable names.
    • setVariables

      public void setVariables(List<String> nameList)
      Sets the list of selected variable names.
      Parameters:
      nameList - the list of variable names to select. If the variable list is in single selection mode, only the first name from the list is selected.
    • main

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