Package loggerForms.controlDescriptions
Class InputControlDescription
java.lang.Object
loggerForms.ItemDescription
loggerForms.controlDescriptions.ControlDescription
loggerForms.controlDescriptions.InputControlDescription
- Direct Known Subclasses:
CdChar
,CdCheckbox
,CdCounter
,CdLatLong
,CdLatLongTime
,CdLookup
,CdNMEAChar
,CdTime
,CdTimestamp
,NumberControlDescription
-
Method Summary
Modifier and TypeMethodDescriptionabstract Object
fromString
(String data) Convert data in a string back into a valid object of the correct type for this form.void
setDataSelectCreator
(ControlDataSelCreator dataSelectCreator) Convert a data object to a string.Methods inherited from class loggerForms.controlDescriptions.ControlDescription
createXMLDataElement, createXMLDataItem, extractXMLElementData, fillXMLDataElement, formatDataItem, getEType, getFormsTableItems, getHint, getItemWarning, makeCd, makeComponent, makeControl, 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
-
Method Details
-
fromString
Convert data in a string back into a valid object of the correct type for this form.- Parameters:
data
- string data, e.g. from a Json string.- Returns:
- Obect in correct format
-
toString
Convert a data object to a string. Default just calls the objects .toString() function.- Parameters:
dataObject
- data object, e.g. from database.- Returns:
- String
-
getDataSelectCreator
- Returns:
- the dataSelectCreator
-
setDataSelectCreator
- Parameters:
dataSelectCreator
- the dataSelectCreator to set
-