Class JPanelEditBoolean

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditBoolean extends JPanelEdit
An EditPanel which allows the user to select a boolean value ('true' or 'false'). Its values need not be verified.
Version:
1.0 August 16, 2004
Author:
Evan McCreedy
See Also:
  • Field Details

    • serialVersionUID

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

      private JComboBox booleanBox
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditBoolean

      public JPanelEditBoolean(String initialText)
      Sets the panel to contain a standard, white JComboBox.
      Parameters:
      initialText - the text to which the box will be set when 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.
      Specified by:
      getCodedValue in class JPanelEdit
      Returns:
      a Byte.
    • 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