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 Link icon

    • controlMenu Link icon

      protected JPopupMenu controlMenu
    • controlDescription Link icon

      protected ControlDescription controlDescription
    • loggerForm Link icon

      protected LoggerForm loggerForm
    • component Link icon

      protected JPanel component
    • dataError Link icon

      protected String dataError
      defect described will stop form being allowed to be saved.
    • dataWarning Link icon

      protected String dataWarning
      form can still save but with defect described
    • dataType Link icon

      protected Class dataType
    • sqlType Link icon

      protected Types sqlType
    • AUTO_UPDATE_SUCCESS Link icon

      public static final int AUTO_UPDATE_SUCCESS
      See Also:
    • AUTO_UPDATE_FAIL Link icon

      public static final int AUTO_UPDATE_FAIL
      See Also:
    • AUTO_UPDATE_CANT Link icon

      public static final int AUTO_UPDATE_CANT
      See Also:
  • Constructor Details Link icon

  • Method Details Link icon

    • setToolTipToAllSubJComponants Link icon

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

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

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

      public void addF1KeyListener(JComponent component)
    • f1Pressed Link icon

      public void f1Pressed()
    • getDataError Link icon

      public abstract String getDataError()
      Returns:
    • getData Link icon

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

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

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

      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 Link icon

      public void clear()
    • getControlDescription Link icon

      public ControlDescription getControlDescription()
      Returns:
      the controlDescription
    • getLoggerForm Link icon

      public LoggerForm getLoggerForm()
      Returns:
      the loggerForm
    • getComponent Link icon

      public JPanel getComponent()
      Returns:
      the component
    • lFocusGained Link icon

      public void lFocusGained(FocusEvent fe)
    • getDataWarning Link icon

      public String getDataWarning()
      Returns:
      the dataWarning
    • clearDataWarning Link icon

      public void clearDataWarning()
      clear DataWarning field
    • clearDataError Link icon

      public void clearDataError()
    • updateNMEAData Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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