Package overit.geocall.basic.ui.control
Class InputDouble
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Input
overit.geocall.basic.ui.control.InputRegExp
overit.geocall.basic.ui.control.InputDouble
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Arrangeable,Badgeable,ValueValidator,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
- Direct Known Subclasses:
InputDoubleDataCollection,InputMeasure
@Component
@Configurable
@FilterCriteria({IS_EQUAL_TO,IS_NOT_EQUAL_TO,IS_GREATER_THAN,IS_GREATER_THAN_OR_EQUAL_TO,IS_LESS_THAN,IS_LESS_THAN_OR_EQUAL_TO,IS_NULL,IS_NOT_NULL})
public class InputDouble
extends InputRegExp
The class implements a numeric input field in which the user can insert a double number
with separation from the integer part and the decimal one.
The framework allows the user to enter only numbers within this type of field, so the programmers doesn't have to deal with checks in this sense. Furthermore it is possible to set some more constraints about the value (maximum, minimum, precision) that the user is allowed to insert
The framework allows the user to enter only numbers within this type of field, so the programmers doesn't have to deal with checks in this sense. Furthermore it is possible to set some more constraints about the value (maximum, minimum, precision) that the user is allowed to insert
- See Also:
- GCApi:
- component
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Anyprotected Stringprotected Stringprotected charprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected intprotected charFields inherited from class overit.geocall.basic.ui.control.InputRegExp
_regexpFields inherited from class overit.geocall.basic.ui.control.Input
_autofocus, _da, _dao, _dao0, _defaultFocus, _event, _eventicon, _eventmsg, _eventparam, _eventprompt, _eventsnumber, _eventtitle, _ff, _fullSize, _hidden, _hinter, _hints, _hintsCache, _key, _label2, _letterCase, _maxlength, _msg, _msgCampoObbligatorio, _msgErroreCampo, _notnull, _numeric, _placeholder, _query, _roevent, _size, _value, autocomplete, configuredFullSize, configuredNotNull, configuredSize, FILTER_CRITERION_ATTRIBUTE, filterCriteria, FULL_SIZE_ATTRIBUTE, NOT_NULL_ATTRIBUTE, promptEmpty, SIZE_ATTRIBUTEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the default value set for this component.protected Stringprotected StringvoidsetGREATER(String s) Sets the constraint about the minimum value.voidSets the constraint about the minimum value.voidSets the number of digits that must occur between two grouping separators.voidSets the constraint about the maximum value.voidSets the constraint about the maximum value.voidsetModelProperties(@NotNull DataAttribute dataAttribute) Sets the model properties based on the providedDataAttribute.voidSets the output precision for the value.voidSets the precision for the valueprotected voidsetup()Setup the Componentprotected voidprotected voidvalidateConcreteValue(String name, Object value, boolean strong, Map arriving) Methods inherited from class overit.geocall.basic.ui.control.InputRegExp
setREGEXPMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, buildDisplayScript, connect, getClassStyle, getConfigurableProperties, getContentHtml, getDescriptionHtml, getFilterCriteriaToRemove, getFullSize, getGenerationHandle, getHIDDEN, getHiddenHtml, getHintsEventButton, getHintsFieldName, getHtml, getInsideEventButton, getInsideEventButton, getLetterCase, getNOTNULL, getSize, getVisibleDescriptionHtml, isImportant, isNotNull, isValueIgnoredByCriterion, queryHints, registerValidators, setAUTOCOMPLETE, setAUTOFOCUS, setConfiguredProperty, setDA, setDAO, setDAO0, setDEFAULTFOCUS, setEVENT, setEVENTMSG, setEVENTPARAM, setEVENTPROMPT, setEVENTTITLE, setFILTERCRITERIA, setFULLSIZE, setHIDDEN, setHints, setHINTS, setHINTSCACHE, setICON, setIMPORTANT, setKEY, setLABEL2, setLETTERCASE, setMAXLENGTH, setMSG, setNAME, setNOTNULL, setNUMERIC, setPARAM, setPLACEHOLDER, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, setVALUE, validateChangingValue, validateNotNull, validateUnchangingValue, validateValueMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setDBLINK, setENABLED, setFUNCTION, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, appendAttribute, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBASIC, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setIdentity, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
_any
-
_precision
protected int _precision -
_outputPrecision
protected int _outputPrecision -
_less
-
_lessEqual
-
_greater
-
_greaterEqual
-
_msgCampoMinore
-
_msgCampoMinoreUguale
-
_msgCampoMaggiore
-
_msgCampoMaggioreUguale
-
_separator
protected char _separator -
_groupingSeparator
protected char _groupingSeparator -
_groupingSize
protected int _groupingSize
-
-
Constructor Details
-
InputDouble
public InputDouble()Creates an InputDouble
-
-
Method Details
-
setLESS
Sets the constraint about the maximum value. The value inserted by the user is considered valid only if it's lower than the one set by this method.- Parameters:
s- The string that represents the maximum limit
-
setLESSEQUAL
Sets the constraint about the maximum value. The value inserted by the user is considered valid only if it's lower or equal than the one set by this method.- Parameters:
s- The string that represents the maximum limit
-
setGREATER
Sets the constraint about the minimum value. The value inserted by the user is considered valid only if it's higher than the one set by this method.- Parameters:
s- The string that represents the minimum limit
-
setGREATEREQUAL
Sets the constraint about the minimum value. The value inserted by the user is considered valid only if it's higher or equal than the one set by this method.- Parameters:
s- The string that represents the minimum limit
-
setup
protected void setup()Description copied from class:ComponentSetup the Component- Overrides:
setupin classInputRegExp
-
setPRECISION
Sets the precision for the value- Parameters:
s- The string that represent the number of digits of the fractional part that the user can insert
-
setGROUPINGSIZE
Sets the number of digits that must occur between two grouping separators.- Parameters:
s- The string that represent the number of digits that must occur between two grouping separators.
-
setOUTPUTPRECISION
Sets the output precision for the value. It is used to show the value in the field- Parameters:
s- The string that represent the number of digits of the fractional part.
-
prepareName
- Overrides:
prepareNamein classInput
-
prepareValue
- Overrides:
prepareValuein classInput
-
control
-
validate
- Overrides:
validatein classInputRegExp
-
validateConcreteValue
protected void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Overrides:
validateConcreteValuein classInputRegExp- Throws:
ValidationException
-
getDefaultValue
Description copied from class:InputGets the default value set for this component.
The default value of the component is the value set for the attribute value into the xml. SeeInput.setVALUE(String)- Overrides:
getDefaultValuein classInput- Returns:
- The default value set for this component
-
setModelProperties
Description copied from interface:overit.geocall.ux.edm.ModelConfigurableSets the model properties based on the providedDataAttribute.- Specified by:
setModelPropertiesin interfaceoverit.geocall.ux.edm.ModelConfigurable- Overrides:
setModelPropertiesin classInputRegExp- Parameters:
dataAttribute- a non-nullDataAttributeused to set model properties
-