Package overit.geocall.basic.ui.control
Class AjaxInputDecoder
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.InputDecoder
overit.geocall.basic.ui.control.AjaxInputDecoder
- 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
This class extends
This class allow to implements an ajax communication from component and server, to retrieve datas to decode inside the InputDecoder component.
The communication with the server, the datas retireve and the refresh operation of the component will be managed from js script with the server that will only have to provide the data to be decoded.
InputDecoder and implements Arrangeable.This class allow to implements an ajax communication from component and server, to retrieve datas to decode inside the InputDecoder component.
The communication with the server, the datas retireve and the refresh operation of the component will be managed from js script with the server that will only have to provide the data to be decoded.
- 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
Fields inherited from class overit.geocall.basic.ui.control.InputDecoder
_autoevent, _autoeventOnSet, _autoeventparam, _code, _codetype, _decodedValues, _format, _key, _msgCerca, _msgCodice, _msgSvuota, _nowrap, _page, _panel, _reset, _search, _staticView, keyTypeFields 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, _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 voidaddAttributes(StringInput iCode) voidajaxQuery(HttpServletRequest request, HttpServletResponse response) Method that must be extended to implements the Ajax interaction request / response logic for the Componentprotected String[]decodeFromChild2(Object code) protected voiddecodeFromParent(Object parentValue) protected org.apache.ecs.ElementgetCleanButton(boolean ro) org.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Implements the interfaceArrangeable.Methods inherited from class overit.geocall.basic.ui.control.InputDecoder
buildDisplayScript, changeCollectedValue, getDa, getDao, getDecodeCommandFromCodeQueryId, getDecodeFromCodeQueryId, getDescriptionHtml, getEventButton, getFilterCriteriaToRemove, getGenerationHandle, getHiddenHtml, getHtml, getHtmlField, isKeyStringType, manageNoDecodedValue, nullEquals, onClean, onDecode, onRestore, onSearch, prepareLongValue, prepareName, prepareStringValue, setAUTOEVENT, setAUTOEVENTONSET, setAUTOEVENTPARAM, setCode, setCODE, setCODETYPE, setDecoding, setEVENT, setFORMAT, setFULLSIZE, setKEY, setKEYTYPE, setNOTNULL, setNOWRAP, setPAGE, setPANEL, setPLACEHOLDER, setSTATICVIEW, setup, setValueMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, connect, control, getClassStyle, getConfigurableProperties, getDefaultValue, getFullSize, getHIDDEN, getHintsEventButton, getHintsFieldName, getInsideEventButton, getInsideEventButton, getLetterCase, getNOTNULL, getSize, getVisibleDescriptionHtml, isImportant, isNotNull, isValueIgnoredByCriterion, prepareValue, queryHints, registerValidators, setAUTOCOMPLETE, setAUTOFOCUS, setConfiguredProperty, setDA, setDAO, setDAO0, setDEFAULTFOCUS, setEVENTMSG, setEVENTPARAM, setEVENTPROMPT, setEVENTTITLE, setFILTERCRITERIA, setHIDDEN, setHints, setHINTS, setHINTSCACHE, setICON, setIMPORTANT, setLABEL2, setLETTERCASE, setMAXLENGTH, setModelProperties, setMSG, setNAME, setNUMERIC, setPARAM, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, setVALUE, validate, validateChangingValue, validateConcreteValue, 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.Arrangeable
getDescriptionHtml, getGenerationHandle, getHiddenHtmlMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Constructor Details
-
AjaxInputDecoder
public AjaxInputDecoder()Creates a new instance of AjaxInputDecoder
-
-
Method Details
-
decodeFromParent
-
decodeFromChild2
-
getCleanButton
protected org.apache.ecs.Element getCleanButton(boolean ro) - Overrides:
getCleanButtonin classInputDecoder
-
getContentHtml
Description copied from class:InputImplements the interfaceArrangeable. It returns the html code that represents the active part of the input field, i.e. the field and the validation scripts- Specified by:
getContentHtmlin interfaceArrangeable- Overrides:
getContentHtmlin classInputDecoder- Parameters:
generationhandle- The handle of the generationes- TheEntitySetto which the element belongs- Returns:
- The html code of the input field or null if the field don't have a graphical representation
-
addAttributes
-
ajaxQuery
Description copied from class:ComponentMethod that must be extended to implements the Ajax interaction request / response logic for the Component- Overrides:
ajaxQueryin classInput- Parameters:
request-HttpServletRequestresponse-HttpServletResponse
-