Class JPanelEditTime

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditTime extends JPanelEdit
panel contains 4 fields:
  • 3 comboboxes (hour, minute, second),
  • 1 text field (decimal fraction of a second),
Version:
1.0
Author:
David Parsons
See Also:
  • Field Details

    • serialVersionUID

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

      JTextField secFraction
      DOCUMENT ME!
    • secCheckBox

      private JCheckBox secCheckBox
      permits whether or not to set this field.
    • minCheckBox

      private JCheckBox minCheckBox
      permits whether or not to set this field.
    • hourCheckBox

      private JCheckBox hourCheckBox
      permits whether or not to set this field.
    • secComboBox

      private JComboBox secComboBox
      value to add to this time field.
    • minComboBox

      private JComboBox minComboBox
      value to add to this time field.
    • hourComboBox

      private JComboBox hourComboBox
      value to add to this time field.
    • xml

      private boolean xml
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditTime

      public JPanelEditTime(String initialText, boolean xml)
      builds a panel containing 4 fields:
      • 3 comboboxes (hour, minute, second),
      • 1 text field (decimal fraction of a second),
      Parameters:
      initialText - the text which will fill the text field whn begun-- date string will be in hh:mm:ss.frac format (anything to he right of a colon may be left unset)
      xml - DOCUMENT ME!
  • Method Details

    • checkFields

      public boolean checkFields()
      If owner were to check, this panel always checks out fine. Ie., no check required
      Specified by:
      checkFields in class JPanelEdit
      Returns:
      DOCUMENT ME!
    • 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()
      returns as much of the time as was set.
      Specified by:
      getPanelValue in class JPanelEdit
      Returns:
      DOCUMENT ME!
    • setItemListeners

      private void setItemListeners()
      gets the internal components to listen to themselves for panel self-verification.