Class LongValuePanel

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

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

    • LongValuePanel

      public LongValuePanel()
  • Method Details

    • getInitialValue

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

      protected Long parseText(JTextField field)
      Description copied from class: ParsableValuePanel
      Parses the text in the field to a value.
      Specified by:
      parseText in class ParsableValuePanel<Long>
      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.