Package loggerForms.controlDescriptions
Class CdLatLong
java.lang.Object
loggerForms.ItemDescription
loggerForms.controlDescriptions.ControlDescription
loggerForms.controlDescriptions.InputControlDescription
loggerForms.controlDescriptions.CdLatLong
- Author:
- GrahamWeatherup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractXMLElementData
(Element el, String value) Extract data values from an XML Element.void
fillXMLDataElement
(Document doc, Element el, Object data) Write an xml element with an actual data value.fromString
(String data) Convert data in a string back into a valid object of the correct type for this form.needs overridden for 1-many/many-many/many-a relationshipgetHint()
makeControl
(LoggerForm loggerForm) Get data from a database table item.void
moveDataToTableItems
(Object data) Move data into the database table itemsMethods inherited from class loggerForms.controlDescriptions.InputControlDescription
getDataSelectCreator, setDataSelectCreator, toString
Methods inherited from class loggerForms.controlDescriptions.ControlDescription
createXMLDataElement, createXMLDataItem, formatDataItem, getEType, getItemWarning, makeCd, makeComponent
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
-
CdLatLong
- Parameters:
formDescription
-
-
-
Method Details
-
getFormsTableItems
Description copied from class:ControlDescription
needs overridden for 1-many/many-many/many-a relationship- Overrides:
getFormsTableItems
in classControlDescription
- Returns:
-
makeControl
- Specified by:
makeControl
in classControlDescription
-
moveDataToTableItems
Description copied from class:ControlDescription
Move data into the database table items- Overrides:
moveDataToTableItems
in classControlDescription
- Parameters:
data
- object of data - must be of a suitable type for this control
-
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
-
moveDataFromTableItems
Description copied from class:ControlDescription
Get data from a database table item.- Overrides:
moveDataFromTableItems
in classControlDescription
- Returns:
- data object - will be in a type suitable for that control.
-
getHint
- Overrides:
getHint
in classControlDescription
- Returns:
- the hint
-
fillXMLDataElement
Description copied from class:ControlDescription
Write an xml element with an actual data value.- Overrides:
fillXMLDataElement
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.
-