Class PamDateTimeField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class PamDateTimeField extends JTextField
Edit box for entering datetimes. Will go red if the time is invalid.
Author:
dg50
See Also:
  • Constructor Details

    • PamDateTimeField

      public PamDateTimeField(int columns)
    • PamDateTimeField

      public PamDateTimeField()
  • Method Details

    • setDateTime

      public void setDateTime(long timeMillseconds)
      Set the datetime and display in default format.
      Parameters:
      timeMillseconds - time in milliseconds.
    • getDateTime

      public Long getDateTime()
      Returns:
      the time in milliseconds, returning null if an invalid date form is entered.
    • isIncludeMillseconds

      public boolean isIncludeMillseconds()
      Include milliseconds in the displayed time
      Returns:
      the includeMillseconds
    • setIncludeMillseconds

      public void setIncludeMillseconds(boolean includeMillseconds)
      Include milliseconds in the displayed time
      Parameters:
      includeMillseconds - the includeMillseconds to set