Class DateValuePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

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

    • DateValuePanel

      public DateValuePanel()
      Creates a new value panel. The initial value is set to the epoch start.
  • Method Details

    • setValue

      public void setValue(Date value)
      Description copied from class: ValuePanel
      Sets the value in this panel. Calling this method does not cause the panel to fire a property change event.
      Specified by:
      setValue in class ValuePanel<Date>
      Parameters:
      value - the new object value.
    • getValue

      public Date getValue()
      Description copied from class: ValuePanel
      Gets the object value for this panel.
      Specified by:
      getValue in class ValuePanel<Date>
      Returns:
      the object value.
    • dateChanged

      public void dateChanged()
      Updates the date and sends a signal of the change if needed.
    • main

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