Package loggerForms.controlDescriptions
Class CdTime
java.lang.Object
loggerForms.ItemDescription
loggerForms.controlDescriptions.ControlDescription
loggerForms.controlDescriptions.InputControlDescription
loggerForms.controlDescriptions.CdTime
- Author:
- GrahamWeatherup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractXMLElementData
(Element el, String value) Extract data values from an XML Element.formatDataItem
(Object data) format the data item, primarily used for the table of data.fromString
(String data) Convert data in a string back into a valid object of the correct type for this form.getHint()
makeControl
(LoggerForm loggerForm) Methods inherited from class loggerForms.controlDescriptions.InputControlDescription
getDataSelectCreator, setDataSelectCreator, toString
Methods inherited from class loggerForms.controlDescriptions.ControlDescription
createXMLDataElement, createXMLDataItem, fillXMLDataElement, getEType, getFormsTableItems, 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
-
CdTime
- Parameters:
formDescription
-
-
-
Method Details
-
makeControl
- Specified by:
makeControl
in classControlDescription
-
getHint
- Overrides:
getHint
in classControlDescription
- Returns:
- the hint
-
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.
-
formatDataItem
Description copied from class:ControlDescription
format the data item, primarily used for the table of data.- Overrides:
formatDataItem
in classControlDescription
- Returns:
-
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
-