Package loggerForms.controls
Class TimestampControl
java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.TimestampControl
-
Field Summary
Fields inherited from class loggerForms.controls.LoggerControl
AUTO_UPDATE_CANT, AUTO_UPDATE_FAIL, AUTO_UPDATE_SUCCESS
-
Constructor Summary
ConstructorDescriptionTimestampControl
(ControlDescription controlDescription, LoggerForm loggerForm) -
Method Summary
Modifier and TypeMethodDescriptionint
Automatically update a control.int
fillNMEAControlData
(NMEADataUnit dataUnit) Called once a correct NMEA data unit has been found to write the data into the control.getData()
gets Data in Timestamp formatvoid
set data in long format - TODO should change to timestampvoid
Return to the default value based on the associated control descriptionMethods inherited from class loggerForms.controls.LoggerControl
addF1KeyListener, addFocusListenerToAllSubComponants, addMouseListenerToAllSubComponants, clear, clearDataError, clearDataWarning, f1Pressed, findNMEADataBlock, getComponent, getControlDescription, getDataWarning, getLoggerForm, lFocusGained, setToolTipToAllSubJComponants, updateNMEAData, updateNMEAData
-
Constructor Details
-
TimestampControl
-
-
Method Details
-
getData
gets Data in Timestamp format- Specified by:
getData
in classLoggerControl
- Returns:
- data from field(s) of component
-
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 classLoggerControl
- Returns:
- AUTO_UPDATE_SUCCESS, AUTO_UPDATE_FAIL or AUTO_UPDATE_CANT
-
setData
set data in long format - TODO should change to timestamp- Specified by:
setData
in classLoggerControl
-
setDefault
public void setDefault()Description copied from class:LoggerControl
Return to the default value based on the associated control description- Specified by:
setDefault
in classLoggerControl
-
getDataError
- Specified by:
getDataError
in classLoggerControl
- Returns:
-
fillNMEAControlData
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 classLoggerControl
- Parameters:
dataUnit
- NMEA data unit- Returns:
- success flag.
-