Class LatLongTimeControl

java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.LatLongTimeControl

public class LatLongTimeControl extends LoggerControl
Author:
GrahamWeatherup
  • Constructor Details

    • LatLongTimeControl

      public LatLongTimeControl(ControlDescription controlDescription, LoggerForm loggerForm)
      Parameters:
      controlDescription -
      loggerForm -
  • Method Details

    • getDataError

      public String getDataError()
      Specified by:
      getDataError in class LoggerControl
      Returns:
    • getData

      public Object getData()
      Specified by:
      getData in class LoggerControl
      Returns:
      data from field(s) of component
    • setData

      public void setData(Object data)
      Description copied from class: LoggerControl
      this will populate the Field with either last entered data or most up to date entry
      Specified by:
      setData in class LoggerControl
    • setDefault

      public void setDefault()
      Description copied from class: LoggerControl
      Return to the default value based on the associated control description
      Specified by:
      setDefault in class LoggerControl
    • fillNMEAControlData

      public int fillNMEAControlData(NMEADataUnit dataUnit)
      Description copied from class: LoggerControl
      Called once a correct NMEA data unit has been found to write the data into the control.
      Specified by:
      fillNMEAControlData in class LoggerControl
      Parameters:
      dataUnit - NMEA data unit
      Returns:
      success flag.
    • autoUpdate

      public int autoUpdate()
      Description copied from class: LoggerControl
      Automatically update a control. This is only possible for controls such as time, timestamps and NMEA items.
      Overrides:
      autoUpdate in class LoggerControl
      Returns:
      AUTO_UPDATE_SUCCESS, AUTO_UPDATE_FAIL or AUTO_UPDATE_CANT