Package loggerForms.controls
Class SimpleControl
java.lang.Object
loggerForms.controls.LoggerControl
loggerForms.controls.SimpleControl
- Direct Known Subclasses:
CharControl
,CounterControl
,DoubleControl
,FloatControl
,IntegerControl
,NMEAControl
,TimeControl
class to extend- to be used for any control with only one data input field
- Author:
- GrahamWeatherup
-
Field Summary
Fields inherited from class loggerForms.controls.LoggerControl
AUTO_UPDATE_CANT, AUTO_UPDATE_FAIL, AUTO_UPDATE_SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
fillNMEAControlData
(NMEADataUnit dataUnit) Called once a correct NMEA data unit has been found to write the data into the control.void
this will populate the Field with either last entered data or most up to date entryvoid
Return to the default value based on the associated control descriptionMethods inherited from class loggerForms.controls.LoggerControl
addF1KeyListener, addFocusListenerToAllSubComponants, addMouseListenerToAllSubComponants, autoUpdate, clearDataError, clearDataWarning, f1Pressed, findNMEADataBlock, getComponent, getControlDescription, getData, getDataWarning, getLoggerForm, lFocusGained, setToolTipToAllSubJComponants, updateNMEAData, updateNMEAData
-
Constructor Details
-
SimpleControl
-
-
Method Details
-
setData
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 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
-
clear
public void clear()- Overrides:
clear
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.
-