Class LoggerControl

java.lang.Object
loggerForms.controls.LoggerControl
Direct Known Subclasses:
CharAreaControl, CheckboxControl, LatLongControl, LatLongTimeControl, LookupControl, SimpleControl, SubFormControl, TimestampControl

public abstract class LoggerControl extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • setToolTipToAllSubJComponants

      public void setToolTipToAllSubJComponants(Component component)
      Parameters:
      listener -
      jComponent -
    • addMouseListenerToAllSubComponants

      public static void addMouseListenerToAllSubComponants(MouseListener l, Component component)
      Parameters:
      listener -
      jComponent -
    • addFocusListenerToAllSubComponants

      public static void addFocusListenerToAllSubComponants(FocusListener l, Component component)
    • addF1KeyListener

      public void addF1KeyListener(JComponent component)
    • f1Pressed

      public void f1Pressed()
    • getDataError

      public abstract String getDataError()
      Returns:
    • getData

      public abstract Object getData()
      Returns:
      data from field(s) of component
    • setData

      public abstract void setData(Object data)
      this will populate the Field with either last entered data or most up to date entry
    • setDefault

      public abstract void setDefault()
      Return to the default value based on the associated control description
    • autoUpdate

      public int autoUpdate()
      Automatically update a control. This is only possible for controls such as time, timestamps and NMEA items.
      Returns:
      AUTO_UPDATE_SUCCESS, AUTO_UPDATE_FAIL or AUTO_UPDATE_CANT
    • clear

      public void clear()
    • getControlDescription

      public ControlDescription getControlDescription()
      Returns:
      the controlDescription
    • getLoggerForm

      public LoggerForm getLoggerForm()
      Returns:
      the loggerForm
    • getComponent

      public JPanel getComponent()
      Returns:
      the component
    • lFocusGained

      public void lFocusGained(FocusEvent fe)
    • getDataWarning

      public String getDataWarning()
      Returns:
      the dataWarning
    • clearDataWarning

      public void clearDataWarning()
      clear DataWarning field
    • clearDataError

      public void clearDataError()
    • updateNMEAData

      public int updateNMEAData()
      Tries to find the appropriate NMEA string by searching multiple data blocks if necessary. IF the previous call was Successful, then it will just go straight to that same data block, otherwise, it will search all available datablocks.
      Returns:
    • fillNMEAControlData

      public abstract int fillNMEAControlData(NMEADataUnit dataUnit)
      Called once a correct NMEA data unit has been found to write the data into the control.
      Parameters:
      dataUnit - NMEA data unit
      Returns:
      success flag.
    • updateNMEAData

      public int updateNMEAData(NMEADataUnit nmeaData)
      Used when NMEA data is being updated in response to the arrival of a new NMEA string (i.e. on forms which save all NMEA data from a single string). An actual string is passed in, but there is just a chance that it will be the wrong type in which case the default is used.
      Parameters:
      nmeaData -
    • findNMEADataBlock

      public NMEADataBlock findNMEADataBlock()
      The NMEA datablock name must be stored somewhere - how about as Topic ?
      Returns: