Package loggerForms.controlDescriptions
Class CdNMEAChar
java.lang.Object
loggerForms.ItemDescription
loggerForms.controlDescriptions.ControlDescription
loggerForms.controlDescriptions.InputControlDescription
loggerForms.controlDescriptions.CdNMEAChar
- Author:
- GrahamWeatherup
-
Constructor Summary
ConstructorDescriptionCdNMEAChar
(FormDescription formDescription, ItemInformation itemInformation) -
Method Summary
Modifier and TypeMethodDescriptionextractXMLElementData
(Element el, String value) Extract data values from an XML Element.fromString
(String data) Convert data in a string back into a valid object of the correct type for this form.makeControl
(LoggerForm loggerForm) Methods inherited from class loggerForms.controlDescriptions.InputControlDescription
getDataSelectCreator, setDataSelectCreator, toString
Methods inherited from class loggerForms.controlDescriptions.ControlDescription
createXMLDataElement, createXMLDataItem, fillXMLDataElement, formatDataItem, getEType, getFormsTableItems, getHint, getItemWarning, makeCd, makeComponent, moveDataFromTableItems, moveDataToTableItems
Methods inherited from class loggerForms.ItemDescription
addItemError, getAdcChannel, getAdcGain, getAnalogueAdd, getAnalogueMultiply, getAutoclear, getAutoUpdate, getColour, getControlOnSubform, getDbTitle, getDefaultValue, getForceGps, getFormDescription, getGetControlData, getHeight, getId, getItemErrors, getItemInformation, getLength, getMaxValue, getMinValue, getNmeaModule, getNmeaPosition, getNmeaString, getNumDBColumns, getOrder, getPlot, getPostTitle, getReadOnly, getRequired, getSendControlName, getTitle, getTopic, getType, setAutoUpdate, setItemErrors, setLength
-
Constructor Details
-
CdNMEAChar
- Parameters:
formDescription
-
-
-
Method Details
-
makeControl
- Specified by:
makeControl
in classControlDescription
-
extractXMLElementData
Description copied from class:ControlDescription
Extract data values from an XML Element. Unlike the function that writes the elements using toString() this will have to be more complicated to create the correct type of data.
Controls with non standard data types will have to override this.- Overrides:
extractXMLElementData
in classControlDescription
- Parameters:
el
- XML Elementvalue
- Value - quicker and easier for basic controls. Others may have to do a more complex extraction from the Element.- Returns:
- Extracted object or null if data were null of there was a mismatch.
-
fromString
Description copied from class:InputControlDescription
Convert data in a string back into a valid object of the correct type for this form.- Specified by:
fromString
in classInputControlDescription
- Parameters:
data
- string data, e.g. from a Json string.- Returns:
- Obect in correct format
-