Class VisualChoice

java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualChoice
All Implemented Interfaces:
ComponentProducer, VisualObject

public class VisualChoice extends AbstractVisualObject
The VisualChoice class represents a value choice as a combo box. When the combo box selection is modified, the value is changed.
Since:
3.1.7
Author:
Peter Hollemans
  • Constructor Details

    • VisualChoice

      public VisualChoice(Object value)
      Creates a new visual choice object using the specified value.
  • Method Details

    • getComponent

      public Component getComponent()
      Gets the field used to represent the string.
    • getValue

      public Object getValue()
      Gets the choice value value.
      Returns:
      the value that this visual object currently holds.
    • setRestrictions

      public void setRestrictions(Object restrict)
      Sets restrictions on the allowed choice values.
      Specified by:
      setRestrictions in interface VisualObject
      Overrides:
      setRestrictions in class AbstractVisualObject
      Parameters:
      restrict - the List of values that are allowed.
    • main

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