Class JPanelEditChar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditChar extends JPanelEdit
Very simple EditPanel which merely edit a letter at a time. Its values cannot be verified.
Version:
1.0
Author:
David Parsons
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • editTextField

      private JTextField editTextField
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditChar

      public JPanelEditChar(char initialChar)
      Sets the panel to contain a standard, white JTextField.
      Parameters:
      initialChar - the text which will fill the text field whn begun
      See Also:
  • Method Details

    • checkFields

      public boolean checkFields()
      There is nothing to check in this Panel. Returns true.
      Specified by:
      checkFields in class JPanelEdit
      Returns:
      true
    • getCodedValue

      public Object getCodedValue()
      If the information held by the panel is stored as a code (as in 'M' for "male" or 'F' for "female"), then this code will be returned by this method. If there is no code for this value, this method will return a the same value as getPanelValue()
      Specified by:
      getCodedValue in class JPanelEdit
      Returns:
      the coded value. If the panel has no coded value, then the return value will be the String returned by getPanelValue().
    • getPanelValue

      public String getPanelValue()
      gets the data which the user could redefine within this panel.
      Specified by:
      getPanelValue in class JPanelEdit
      Returns:
      This is the value translated from the user-editable fields