Class SearchField
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.geocallapp.utilities.ux.ui.control.SearchField
- 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
Search Field used in SelectionPanel to filter the selectable items
- Since:
- 19.0
- See Also:
-
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
FieldsFields 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 org.apache.ecs.ElementgetEventButton(boolean ro) org.apache.ecs.ElementReturns the html of the Input elementbooleanCalled when the user clicks on the x icon in the field, it clears the value of the field.booleanCalled to decode the value (when the user inputs the value and the field loses the focus, or when the user inputs the value and presses the tab key).voidCalled when the InputDecoder is managed with the selection of the values on a new page (InputDecoder.setPAGE(String)), and the user returns on the page that contains the field, after the choice of the value.booleanCalled when the user clicks on the magnifier icon, it opens a page (InputDecoder.setPAGE(String)) or shows aPanel(InputDecoder.setPANEL(String).protected Longprotected voidprotected voidvoidprotected voidsetup()Setup the ComponentMethods inherited from class overit.geocall.basic.ui.control.InputDecoder
buildDisplayScript, changeCollectedValue, getCleanButton, getContentHtml, getDa, getDao, getDecodeCommandFromCodeQueryId, getDecodeFromCodeQueryId, getDescriptionHtml, getFilterCriteriaToRemove, getGenerationHandle, getHiddenHtml, getHtmlField, isKeyStringType, manageNoDecodedValue, nullEquals, prepareName, prepareStringValue, setAUTOEVENT, setAUTOEVENTONSET, setAUTOEVENTPARAM, setCODE, setCODETYPE, setDecoding, setEVENT, setFORMAT, setFULLSIZE, setKEY, setKEYTYPE, setNOTNULL, setNOWRAP, setPAGE, setPANEL, setPLACEHOLDER, setSTATICVIEW, setValueMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, 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.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
_searchEvent
-
-
Constructor Details
-
SearchField
public SearchField()
-
-
Method Details
-
setup
protected void setup()Description copied from class:ComponentSetup the Component- Overrides:
setupin classInputDecoder
-
setSEARCHEVENT
-
getEventButton
protected org.apache.ecs.Element getEventButton(boolean ro) - Overrides:
getEventButtonin classInputDecoder
-
getHtml
Description copied from class:InputReturns the html of the Input element- Overrides:
getHtmlin classInputDecoder- Parameters:
es- TheEntitySet- Returns:
- The html of the Input element
-
prepareLongValue
- Overrides:
prepareLongValuein classInputDecoder
-
setCode
- Overrides:
setCodein classInputDecoder
-
onDecode
Description copied from class:InputDecoderCalled to decode the value (when the user inputs the value and the field loses the focus, or when the user inputs the value and presses the tab key). At the end it calls the autoevent, if set (InputDecoder.setAUTOEVENT(String))- Overrides:
onDecodein classInputDecoder- Parameters:
o-HashGettercontaining the parameters to decode- Returns:
false
-
onSearch
Description copied from class:InputDecoderCalled when the user clicks on the magnifier icon, it opens a page (InputDecoder.setPAGE(String)) or shows aPanel(InputDecoder.setPANEL(String). The page or panel should contains a list representing the codes and theirs decoded values, and should allows the user to directly select one of them.- Overrides:
onSearchin classInputDecoder- Parameters:
o- Not used- Returns:
false
-
onRestore
Description copied from class:InputDecoderCalled when the InputDecoder is managed with the selection of the values on a new page (InputDecoder.setPAGE(String)), and the user returns on the page that contains the field, after the choice of the value.
At the end it calls the autoevent, if set (InputDecoder.setAUTOEVENT(String))- Overrides:
onRestorein classInputDecoder- Parameters:
o- TheHashGetterthat contains the decoded values
-
onClean
Description copied from class:InputDecoderCalled when the user clicks on the x icon in the field, it clears the value of the field. At the end it calls the autoevent, if set (InputDecoder.setAUTOEVENT(String))- Overrides:
onCleanin classInputDecoder- Parameters:
o- Not used- Returns:
false
-
sendSearchEvent
-