Package loggerForms.controlDescriptions
Class CdShort
- Author:
- GrahamWeatherup
-
Field Summary
Fields inherited from class loggerForms.controlDescriptions.ControlDescription
formsTableItems, primarySQLType -
Constructor Summary
Constructors -
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.NumberControlDescription
getHintMethods inherited from class loggerForms.controlDescriptions.InputControlDescription
getDataSelectCreator, setDataSelectCreator, toStringMethods inherited from class loggerForms.controlDescriptions.ControlDescription
createXMLDataElement, createXMLDataItem, fillXMLDataElement, formatDataItem, getEType, getFormsTableItems, getItemWarning, makeCd, makeComponent, moveDataFromTableItems, moveDataToTableItemsMethods 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
-
CdShort
- Parameters:
formDescription-
-
-
Method Details
-
makeControl
- Specified by:
makeControlin classControlDescription
-
extractXMLElementData
Description copied from class:ControlDescriptionExtract 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:
extractXMLElementDatain 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:InputControlDescriptionConvert data in a string back into a valid object of the correct type for this form.- Specified by:
fromStringin classInputControlDescription- Parameters:
data- string data, e.g. from a Json string.- Returns:
- Obect in correct format
-