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
FieldsFields inherited from class loggerForms.controls.LoggerControl
AUTO_UPDATE_CANT, AUTO_UPDATE_FAIL, AUTO_UPDATE_SUCCESS, component, controlDescription, controlMenu, dataError, dataType, dataWarning, loggerForm, sqlType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intfillNMEAControlData(NMEADataUnit dataUnit) Called once a correct NMEA data unit has been found to write the data into the control.voidthis will populate the Field with either last entered data or most up to date entryvoidReturn 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
-
Field Details
-
textField
-
-
Constructor Details
-
SimpleControl
-
-
Method Details
-
setData
Description copied from class:LoggerControlthis will populate the Field with either last entered data or most up to date entry- Specified by:
setDatain classLoggerControl
-
setDefault
public void setDefault()Description copied from class:LoggerControlReturn to the default value based on the associated control description- Specified by:
setDefaultin classLoggerControl
-
clear
public void clear()- Overrides:
clearin classLoggerControl
-
getDataError
- Specified by:
getDataErrorin classLoggerControl- Returns:
-
fillNMEAControlData
Description copied from class:LoggerControlCalled once a correct NMEA data unit has been found to write the data into the control.- Specified by:
fillNMEAControlDatain classLoggerControl- Parameters:
dataUnit- NMEA data unit- Returns:
- success flag.
-