Class StringValuePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TextFieldVerifierImp

public class StringValuePanel extends ParsableValuePanel<String>
A StringValuePanel holds a String value and allows the user to change it.
Since:
3.3.2
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • StringValuePanel

      public StringValuePanel()
  • Method Details

    • getInitialValue

      protected String getInitialValue()
      Description copied from class: ParsableValuePanel
      Gets the initial value for this panel.
      Specified by:
      getInitialValue in class ParsableValuePanel<String>
      Returns:
      the initial value.
    • parseText

      protected String parseText(JTextField field)
      Description copied from class: ParsableValuePanel
      Parses the text in the field to a value.
      Specified by:
      parseText in class ParsableValuePanel<String>
      Parameters:
      field - the text field to parse.
      Returns:
      the value parsed, or null if there was a number format exception.
    • main

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