Package overit.geocall.basic.ui.control
Class InputCurrency
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.InputCurrency
- 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
@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 InputCurrency
extends InputRegExp
This class, that extends
InputRegExp implements the graphic user interface element that allows the user
to insert values that must respect the format of currency. For this reason, this field is suggested when the
user has to specify a monetary value.- 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 charprotected Stringprotected Stringprotected charprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected booleanprotected booleanFields 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 TypeMethodDescriptionvoidEvery component can add a script to the StringBuilder, script executed when the component is displayed.protected voidprotected Stringprotected StringvoidBoolean flag that indicate if the empty field should be submitted as a null value or as a default value (0).voidsetGREATER(String s) Sets the constraint about the minimum value.voidSets the constraint about the minimum value.voidSets the constraint about the maximum value.voidSets the constraint about the maximum value.voidSets the precision for the currency valueprotected voidsetup()Setup the ComponentvoidDefines whether to use the thousands separator or not in the input field.protected voidprotected voidvalidateConcreteValue(String name, Object value, boolean strong, Map arriving) Methods inherited from class overit.geocall.basic.ui.control.InputRegExp
setModelProperties, setREGEXPMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, connect, getClassStyle, getConfigurableProperties, getContentHtml, getDefaultValue, 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 -
_decimalSeparator
protected char _decimalSeparator -
_groupingSeparator
protected char _groupingSeparator -
emptyAsNull
protected boolean emptyAsNull -
_useGroupingSeparator
protected boolean _useGroupingSeparator -
_less
-
_lessEqual
-
_greater
-
_greaterEqual
-
_msgCampoMinore
-
_msgCampoMinoreUguale
-
_msgCampoMaggiore
-
_msgCampoMaggioreUguale
-
-
Constructor Details
-
InputCurrency
public InputCurrency()Creates an InputCurrency
-
-
Method Details
-
setUSEGROUPING
Defines whether to use the thousands separator or not in the input field. The separator is automatically added to the value when the field loses the focus, and is used only in visualization.- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default one, that isfalse
-
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
-
setEMPTYASNULL
Boolean flag that indicate if the empty field should be submitted as a null value or as a default value (0).- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default value, that is false
-
setup
protected void setup()Description copied from class:ComponentSetup the Component- Overrides:
setupin classInputRegExp
-
prepareName
- Overrides:
prepareNamein classInput
-
setPRECISION
Sets the precision for the currency value- Parameters:
s- The string that represent the number of digits of the fractional part that the user is allowed to insert
-
prepareValue
- Overrides:
prepareValuein classInput
-
control
-
validate
- Overrides:
validatein classInputRegExp
-
buildDisplayScript
Every component can add a script to the StringBuilder, script executed when the component is displayed. The method add the script that, if requested, insert in visualization the thousand separator.- Overrides:
buildDisplayScriptin classInput- Parameters:
sb- The StringBuilder on which we want to add the script
-
validateConcreteValue
protected void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Overrides:
validateConcreteValuein classInputRegExp- Throws:
ValidationException
-