Class SimpleControl

java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.SimpleControl
Direct Known Subclasses:
CharControl, CounterControl, DoubleControl, FloatControl, IntegerControl, NMEAControl, TimeControl

public abstract class SimpleControl extends LoggerControl
class to extend- to be used for any control with only one data input field
Author:
GrahamWeatherup
  • Constructor Details

  • Method Details

    • 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
    • clear

      public void clear()
      Overrides:
      clear in class LoggerControl
    • getDataError

      public String getDataError()
      Specified by:
      getDataError in class LoggerControl
      Returns:
    • 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.