Package overit.geocall.basic.ui.control
Class InputMultiSelectLookup
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.InputLookup
overit.geocall.basic.ui.control.InputMultiSelectLookup
- 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_IN,IS_NOT_IN})
public class InputMultiSelectLookup
extends InputLookup
This class extends
Values can be specified statically by adding a list of
InputLookup and implements a componenet that allows user to select multiple values from
a drop-down menu that appears when the user clicks on the field. Values can be specified statically by adding a list of
InputOption as children of the component, or
dynamically, loading them from the database using a StaticView.- 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.InputLookup
_autoevent, _autoeventanchor, _autoeventmsg, _autoeventparam, _autohidden, _childLookup, _childType, _defaultOption, _defaultValue, _msgCampoValoreNonValido, _parentLookup, _parentType, _roexpanse, _type, CLASS_HTML_ATTRIBUTE, configuredOrder, containsEmptyOption, order, ORDER_ATTRIBUTE, searchThreshold, STRING_PARENT_TYPEFields 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 created.protected org.apache.ecs.ElementContainerprotected org.apache.ecs.ElementgetContentHtmlDropDown(Object generationhandle, EntitySet es, List v) Gets the default value set for this component.protected org.apache.ecs.ElementgetHiddenHtml(String htmlname, List v) protected booleanisSelected(Object inMemoryValue, String sCurrentValue, boolean defaultSelection) protected Stringprotected voidpublishValue(Object value) voidDefines the type of the field values.protected voidsetup()Setup the ComponentvoidvalidateConcreteValue(String name, Object value, boolean strong, Map arriving) protected voidvalidateNotNull(String name, Object value, boolean strong, Map arriving) Methods inherited from class overit.geocall.basic.ui.control.InputLookup
appendStyle4Mac, buildDisplayScript, getContentHtml, getContentHtmlLookUp, getDescriptionHtml, getFilterCriteriaToRemove, getGenerationHandle, getHiddenHtml, getHtml, getNOTNULL, getOrder, getSearchThreshold, setAUTOEVENT, setAUTOEVENTANCHOR, setAUTOEVENTMSG, setAUTOEVENTPARAM, setAUTOFOCUS, setAUTOHIDDEN, setCHILDLOOKUP, setCHILDTYPE, setConfiguredProperty, setFULLSIZE, setModelProperties, setORDER, setPARENTLOOKUP, setPARENTTYPE, setROEXPANSE, setSEARCHTHRESHOLD, setVALUE, typeBoolean, typeString, validateMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, connect, control, getClassStyle, getConfigurableProperties, getFullSize, getHIDDEN, getHintsEventButton, getHintsFieldName, getInsideEventButton, getInsideEventButton, getLetterCase, getSize, getVisibleDescriptionHtml, isImportant, isNotNull, isValueIgnoredByCriterion, prepareValue, queryHints, registerValidators, setAUTOCOMPLETE, setDA, setDAO, setDAO0, setDEFAULTFOCUS, setEVENT, setEVENTMSG, setEVENTPARAM, setEVENTPROMPT, setEVENTTITLE, setFILTERCRITERIA, setHIDDEN, setHints, setHINTS, setHINTSCACHE, setICON, setIMPORTANT, setKEY, setLABEL2, setLETTERCASE, setMAXLENGTH, setMSG, setNAME, setNOTNULL, setNUMERIC, setPARAM, setPLACEHOLDER, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, validate, validateChangingValue, 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, 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
-
Constructor Details
-
InputMultiSelectLookup
public InputMultiSelectLookup()
-
-
Method Details
-
setup
protected void setup()Description copied from class:ComponentSetup the Component- Overrides:
setupin classInputLookup
-
setTYPE
Description copied from class:InputLookupDefines the type of the field values.- Overrides:
setTYPEin classInputLookup- Parameters:
s- Accepted values are: "long" (that is also the default one), to state that the values are Long values; "string" to state that the values are String values.
-
prepareName
- Overrides:
prepareNamein classInputLookup
-
getHiddenHtml
- Overrides:
getHiddenHtmlin classInputLookup
-
getContentHtmlDropDown
protected org.apache.ecs.Element getContentHtmlDropDown(Object generationhandle, EntitySet es, List v) - Overrides:
getContentHtmlDropDownin classInputLookup
-
createTag
- Overrides:
createTagin classInputLookup
-
isSelected
- Overrides:
isSelectedin classInputLookup
-
publishValue
- Overrides:
publishValuein classInputLookup
-
validateNotNull
protected void validateNotNull(String name, Object value, boolean strong, Map arriving) throws ValidationException - Overrides:
validateNotNullin classInput- Throws:
ValidationException
-
validateConcreteValue
public void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Overrides:
validateConcreteValuein classInputLookup- 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 classInputLookup- Returns:
- The default value set for this component
-
buildSetupScript
Description copied from class:InputLookupEvery component can add a script to the StringBuilder, script executed when the component is created. The method add the script that controls the selected value of the field.- Overrides:
buildSetupScriptin classInputLookup- Parameters:
sb- The StringBuilder on which we want to add the script
-