Package overit.geocall.basic.ui.control
Class Input
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Input
- 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:
InputCheckBox,InputColorBar,InputDataCollection,InputDate,InputDecoder,InputDTZ,InputHtml,InputImage,InputLanguage,InputLookup,InputMultiDecoder,InputMultiLookup,InputPassword,InputRadio,InputRegExp,InputSymbolBar,InputText,InputUpload
@Component
@Configurable
@ConfigurableAttribute(name="NOTNULL",label="Not Null",type="BOOLEAN",onlyExtended=true) @ConfigurableAttribute(name="FULLSIZE",label="Full Size",type="BOOLEAN") @ConfigurableAttribute(name="SIZE",label="Size",type="LONG",properties={@Property(key="less",value="9223372036854775807"),@Property(key="greater",value="-9223372036854775808")})
@FilterCriteria(value={IS_EQUAL_TO,IS_NOT_EQUAL_TO,IS_NULL,IS_NOT_NULL,IS_LIKE},
overrideParent=false)
public class Input
extends Control
implements Arrangeable, ValueValidator
The class implements a generic textual Input field
- 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 booleanprotected DABaseprotected DAOprotected DAO0protected booleanprotected ListAttributeprotected ListAttributeprotected ListAttributeprotected ListAttributeprotected ListAttributeprotected intprotected ListAttributeprotected ForeignFieldprotected booleanprotected booleanprotected overit.geocall.basic.ui.control.Input.Hinterprotected ListAttributeprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected Stringprotected Stringprotected ListAttributeprotected Stringprotected Stringprotected Stringprotected Booleanprotected Booleanprotected Stringstatic final Stringprotected Set<SqlOperator> static final Stringstatic final Stringprotected booleanstatic final StringFields 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 voidaddEventButtons(org.apache.ecs.html.TR tr, boolean ro) Create an event button for every event specified in the xml definition and add it to the trprotected voidprotected voidaddHint(List<String> hints, String value, String label, boolean strikethrough, boolean selected, String selectedEventName, Object selectedKey) protected voidaddHintsButton(org.apache.ecs.html.TR tr, boolean ro) Create a button which opens the static hints dropdown menu and add it to the trvoidajaxQuery(HttpServletRequest request, HttpServletResponse response) Method that must be extended to implements the Ajax interaction request / response logic for the ComponentvoidEvery component can add a script to the StringBuilder, script executed when the component is displayed.protected voidconnect()protected voidprotected StringgetClassStyle(boolean ro) Compute the css classes associated to the field.Collection<overit.geocall.ux.configurability.UIProperty> Gets a set ofUIPropertyobject that represents the configurable UI properties that the object can handle.
EachUIPropertyobject, can be used to retrieve some information about the configurable property, for example it can be used to design the ui xml objects to inject into the properties configurability section of the ResponsiveGrids and TableVies configurability panels.
The property section are those section placed on the left side of the panel and shown when user click on the settings icon of a field to customize its properties.org.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Implements the interfaceArrangeable.Gets the default value set for this component.org.apache.ecs.ElementgetDescriptionHtml(Object generationhandle, EntitySet es) Implements the interfaceArrangeable.protected Set<SqlOperator> getFilterCriteriaToRemove(Set<overit.geocall.ux.configurability.UIProperty> properties) booleanGets the real full size value to apply.Implements the interfaceArrangeablebooleanRetrieves the value of thehiddenattributeorg.apache.ecs.ElementgetHiddenHtml(Object generationhandle, EntitySet es) Implements the interfaceArrangeable.protected org.apache.ecs.ElementgetHintsEventButton(boolean ro) protected Stringorg.apache.ecs.ElementReturns the html of the Input elementprotected org.apache.ecs.ElementgetInsideEventButton(boolean ro) protected org.apache.ecs.ElementgetInsideEventButton(int eventnumber, boolean ro) protected StringbooleanRetrieves the value of thenotnullattributegetSize()Gets the real size value to apply.protected org.apache.ecs.ElementgetVisibleDescriptionHtml(Object generationhandle, EntitySet es) booleanGets if thisInputis important or not.booleanGets the real not null value to apply.protected booleanprotected Stringprotected Stringprotected DBViewqueryHints(String req, long sequence) protected voidvoidSets the autocomplete attribute on the input field.voidIndicates if the field is the one that has the focus.voidsetConfiguredProperty(Map<String, Serializable> properties) Apply the user's properties customization into the component.voidCreates (in association withsetQUERY()) an input field with dynamic hints.voidCreates (in association withsetQUERY()) an input field with dynamic hints.voidCreates (in association withsetQUERY()) an input field with dynamic hints.voidDeprecated, for removal: This API element is subject to removal in a future version.voidSets one or more events associated to the input field.voidSets one (or more) string that appear as messages for the events associated to the field (seesetEVENT()).voidSets one (or more) parameter for the events associated to the field (seesetEVENT()).voidSets one (or more) string that appear as prompt for the events associated to the field (seesetEVENT()).voidSets one (or more) string that appear as tooltip when the user positions the cursor over the button of an event associated to the field (seesetEVENT()).voidSets the list of allowed filter criteria for the widget, separated by commas.
Setting this attribute the developer can narrow down the list of criteria the user can apply to the field.voidIndicates if the field has to occupy all the available space in widthvoidIndicates if the field will not appear in the form
Even if the field is hidden, its value - if present - will be submitted.voidSets a list of static hints for the field.voidSets a list of static hints for the field.voidIndicates if the dynamic hints can be retrieved from the cache, or must be always fetched from the server.voidSets one (or more) icon that is associated to the button of an event associated to the field (seesetEVENT()).voidSets if the component is an important component or not.
If a component is important it cannot be hidden via configurability and it will be validated into the seek validation phase after a submit to the server.
Otherwise, if the component is not important, no matter what kind of component it is (not null, hidden etc), it will be possible to hide and shows up it via configurability and the seek validation phase won't validate it after a submit.voidIndicates if the field is a key field.voidSets a second label right next the first one.voidSets the letter case of the value of the input field.voidSets the maxlength html attribute of the input field.voidsetModelProperties(@NotNull DataAttribute dataAttribute) Sets the model properties based on the providedDataAttribute.voidSets the message that appears when the user tries to submit a value that is not valid.voidSets the name associated to the input field.voidsetNOTNULL(String s) Defines if the value of the field can be empty when submitted
By setting true to this attribute, the user can't make a submit until the value of the field is compiledvoidsetNUMERIC(String s) Indicates if the field value should be considered as a numeric from the aspect point of view (right alignment)voidDeprecated, for removal: This API element is subject to removal in a future version.UsesetEVENTPARAMinsteadvoidSets the placeholder, the short hint that usually describes the expected value that appears in the field before the user enters a valuevoidDeprecated, for removal: This API element is subject to removal in a future version.UsesetEVENTPROMPTinsteadvoidSets if the value returned by the prompt can be an empty string ""voidCreates (in association withsetDA()) an input field with dynamic hints.voidsetROEVENT(String s) Sets one or more events associated to the input field when the input is in readonly state.voidSets the html size attribute of the input fieldprotected voidsetup()Setup the Componentprotected voidsetupAutocomplete(org.apache.ecs.html.Input i, boolean ro) voidForcibly sets a valueprotected voidprotected voidvalidateChangingValue(String name, Object value, boolean strong, Map arriving) protected voidvalidateConcreteValue(String name, Object value, boolean strong, Map arriving) protected voidvalidateNotNull(String name, Object value, boolean strong, Map arriving) protected voidvalidateUnchangingValue(String name, Object value, Object published, boolean strong, Map arriving) voidvalidateValue(String name, Object value, boolean strong, Map arriving) Makes the validation to avoid tampering values of a component and it's value.
When a submit event to the server is triggered, is checked that the component is in the validator set, the value is not changed (if the component is RO), the value is changed with an allow value ecc ecc.Methods 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
-
SIZE_ATTRIBUTE
- See Also:
-
FULL_SIZE_ATTRIBUTE
- See Also:
-
NOT_NULL_ATTRIBUTE
- See Also:
-
FILTER_CRITERION_ATTRIBUTE
- See Also:
-
_msg
-
_event
-
_roevent
-
_eventmsg
-
_eventprompt
-
promptEmpty
protected boolean promptEmpty -
_eventparam
-
_eventtitle
-
_eventicon
-
_hints
-
_eventsnumber
protected int _eventsnumber -
_value
-
_maxlength
-
_size
-
configuredSize
-
_placeholder
-
_notnull
protected boolean _notnull -
configuredNotNull
-
_key
protected boolean _key -
_numeric
protected boolean _numeric -
_defaultFocus
protected boolean _defaultFocus -
_letterCase
-
_fullSize
protected boolean _fullSize -
configuredFullSize
-
_autofocus
protected boolean _autofocus -
_ff
-
_label2
-
_hintsCache
protected boolean _hintsCache -
autocomplete
-
_da
-
_dao
-
_dao0
-
_query
-
_hinter
protected transient overit.geocall.basic.ui.control.Input.Hinter _hinter -
filterCriteria
-
_msgErroreCampo
-
_msgCampoObbligatorio
-
-
Constructor Details
-
Input
public Input()Creates a new instance of Input
-
-
Method Details
-
setPLACEHOLDER
Sets the placeholder, the short hint that usually describes the expected value that appears in the field before the user enters a value- Parameters:
s- The string that will appear as a placeholder in the field
-
setVALUE
Forcibly sets a value- Parameters:
s- The string that represent the value of the field
-
getDefaultValue
Gets the default value set for this component.
The default value of the component is the value set for the attribute value into the xml. SeesetVALUE(String)- Returns:
- The default value set for this component
-
setEVENT
Sets one or more events associated to the input field.
By setting an event, a button will be created inside the field, clicking on which the event will be triggered. Each button will have a default icon.
If the input field is in readonly state, also every event button of the field is readonly (not clickable).- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the name of an event associated to the field
-
setROEVENT
Sets one or more events associated to the input field when the input is in readonly state.
By setting an event, a button will be created inside the field, clicking on which the event will be triggered. Each button will have a default icon.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the name of an event associated to the field when is in readonly state
-
setMSG
Sets the message that appears when the user tries to submit a value that is not valid. It is used in classes that extend Input- Parameters:
s- The string that contains the message
-
setSIZE
Sets the html size attribute of the input field- Parameters:
s- The size attribute expressed in number of characters
-
getSize
Gets the real size value to apply.
This method returns the value of the attribute based on if there is a user customization on the size attribute. If there is no customization returns the default value.- Returns:
- the real size value to apply
-
setMAXLENGTH
Sets the maxlength html attribute of the input field.
By setting this attribute, the user will not be allowed to enter a content longer thanmaxlengthin the field- Parameters:
s- The maxlength attribute expressed in number of characters
-
setNOTNULL
Defines if the value of the field can be empty when submitted
By setting true to this attribute, the user can't make a submit until the value of the field is compiled- 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
-
setIMPORTANT
Description copied from class:ComponentSets if the component is an important component or not.
If a component is important it cannot be hidden via configurability and it will be validated into the seek validation phase after a submit to the server.
Otherwise, if the component is not important, no matter what kind of component it is (not null, hidden etc), it will be possible to hide and shows up it via configurability and the seek validation phase won't validate it after a submit.- Overrides:
setIMPORTANTin classComponent- 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
-
setKEY
Indicates if the field is a key field.
At each key field is assigned a particular CSS style that makes it more evident inside the form, style based on the specific theme currently used- 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
-
setNUMERIC
Indicates if the field value should be considered as a numeric from the aspect point of view (right alignment)- 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
-
setHIDDEN
Indicates if the field will not appear in the form
Even if the field is hidden, its value - if present - will be submitted. Typically these fields should not be placed inside a grid, because they will supply a side effect but they will not be displayed- 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
-
setDEFAULTFOCUS
Deprecated, for removal: This API element is subject to removal in a future version.Don't use this attribute, seesetAUTOFOCUS()instead- Parameters:
s- SeesetAUTOFOCUS()
-
setLABEL2
Sets a second label right next the first one. If labelInLine istruethe separator will be " ", if isfalseit will be a simple " ". Using this method the string will be translated by theTeacher- Parameters:
s- The string that will appear as the second label
-
setNAME
Sets the name associated to the input field. -
setLETTERCASE
Sets the letter case of the value of the input field.
By setting this attribute, the value will automatically be transformed into uppercase or lowercase as the user typing- Parameters:
s- 'u' for uppercase, 'l' for lowecase
-
setFULLSIZE
Indicates if the field has to occupy all the available space in width- 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
-
getFullSize
public boolean getFullSize()Gets the real full size value to apply.
This method returns the value of the attribute based on if there is a user customization on the full size attribute. If there is no customization returns the default value.- Returns:
- the real full size value to apply
-
setAUTOFOCUS
Indicates if the field is the one that has the focus.
If you want to force the focus on a specific field you must set the attribute to true, and every other field that appears before that one in the form must have this attribute set to false- 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
-
setPARAM
Deprecated, for removal: This API element is subject to removal in a future version.UsesetEVENTPARAMinstead- Parameters:
s- UsesetEVENTPARAMinstead
-
setPROMPT
Deprecated, for removal: This API element is subject to removal in a future version.UsesetEVENTPROMPTinstead- Parameters:
s- UsesetEVENTPROMPTinstead
-
setEVENTPARAM
Sets one (or more) parameter for the events associated to the field (seesetEVENT()).
For the association event - parameter, it counts the position in which the attributes appear. If the parameters are fewer than the events, the last parameter of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the param attribute of an event associated to the field
-
setEVENTPROMPT
Sets one (or more) string that appear as prompt for the events associated to the field (seesetEVENT()).
For the association event - prompt, it counts the position in which the attributes appear. If the prompts are fewer than the events, the last prompt of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the prompt attribute of an event associated to the field
-
setEVENTMSG
Sets one (or more) string that appear as messages for the events associated to the field (seesetEVENT()).
For the association event - message, it counts the position in which the attributes appear. If the messages are fewer than the events, the last message of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the msg attribute of an event associated to the field
-
setPROMPTEMPTY
Sets if the value returned by the prompt can be an empty string ""- Parameters:
s-trueif you want to allow to return an empty value by the prompt,falseotherwise.
-
setEVENTTITLE
Sets one (or more) string that appear as tooltip when the user positions the cursor over the button of an event associated to the field (seesetEVENT()).
For the association event - title, it counts the position in which the attributes appear. If the titles are fewer than the events, the last title of the list is associated with all the remaining events.- Parameters:
s- AListAttributeof strings (separated by the character | ) each of which represents the title attribute of an event associated to the field
-
setICON
Sets one (or more) icon that is associated to the button of an event associated to the field (seesetEVENT()).
For the association event button - icon, it counts the position in which the attributes appear. If the icons are fewer than the events, the last icon of the list is associated with all the remaining events.- Overrides:
setICONin classComponent- Parameters:
icon- AListAttributeof strings (separated by the character | ) each of which represents the path of an icon associated to a button of an event on the field
-
getNOTNULL
public boolean getNOTNULL()Retrieves the value of thenotnullattribute- Returns:
- true if the field cannot be empty when submitted, false otherwise
-
isNotNull
public boolean isNotNull()Gets the real not null value to apply.
This method returns the value of the attribute based on if there is a user customization on the not null attribute. If there is no customization returns the default value.- Returns:
- the real not null value to apply
-
getHIDDEN
public boolean getHIDDEN()Retrieves the value of thehiddenattribute- Returns:
- true if the field is hidden, false otherwise
-
setHINTS
Sets a list of static hints for the field. By setting this list, a button will be created inside the field, clicking on which will appear a menu in which each voice corresponds to one hint, with the possibility to select one of them. Even if there are some static hints, the user can fill the field with every other value.- Parameters:
values- AListAttributeof strings (separated by the character | ) each of which represents one static hint
-
setHints
Sets a list of static hints for the field. By setting this list, a button will be created inside the field, clicking on which will appear a menu in which each voice corresponds to one hint, with the possibility to select one of them. Even if there are some static hints, the user can fill the field with every other value.- Parameters:
values- AListAttributeof array of strings each of which represents one static hint
-
setDA
Creates (in association withsetQUERY()) an input field with dynamic hints.
Using these methods, during the user input on the field will appear a dynamic menu containing a list of voices based on the value that the user is inserting.- Parameters:
da- TheDABaseused in association with a querysetQUERY()) to extract the dynamic hints
-
setDAO
Creates (in association withsetQUERY()) an input field with dynamic hints.
Using these methods, during the user input on the field will appear a dynamic menu containing a list of voices based on the value that the user is inserting.- Parameters:
dao- TheDAOused in association with a querysetQUERY()) to extract the dynamic hints
-
setDAO0
Creates (in association withsetQUERY()) an input field with dynamic hints.
Using these methods, during the user input on the field will appear a dynamic menu containing a list of voices based on the value that the user is inserting.- Parameters:
dao0- TheDAO0used in association with a querysetQUERY()) to extract the dynamic hints
-
setQUERY
Creates (in association withsetDA()) an input field with dynamic hints.
Using these methods, during the user input on the field will appear a dynamic menu containing a list of voices based on the value that the user is inserting.- Parameters:
query- The query used in association with a DA (setDA()) to extract the dynamic hints
-
setHINTSCACHE
Indicates if the dynamic hints can be retrieved from the cache, or must be always fetched from the server.- 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 true
-
setAUTOCOMPLETE
Sets the autocomplete attribute on the input field.- Parameters:
s- A string that represents the autocomplete attribute of the field. Some examples are : off,nameemail,tel,sex ecc.
The complete list of autocomplete's value can be found on this link: https://www.w3.org/Translations/WCAG21-it/#input-purposes
-
setFILTERCRITERIA
Sets the list of allowed filter criteria for the widget, separated by commas.
Setting this attribute the developer can narrow down the list of criteria the user can apply to the field. The list of criteria must be indicated follow theSqlOperatorvalues.
For Example: filterCriteria="eq,ne" to allowing only those two criteria.- Parameters:
s- the list of allowed filter criteria for the widget, separated by commas
-
setup
protected void setup()Description copied from class:ComponentSetup the Component -
connect
protected void connect() -
registerValidators
protected void registerValidators() -
validate
-
setupAutocomplete
protected void setupAutocomplete(org.apache.ecs.html.Input i, boolean ro) -
getLetterCase
-
control
-
isValueIgnoredByCriterion
protected boolean isValueIgnoredByCriterion() -
prepareName
-
prepareValue
-
getHtml
Returns the html of the Input element -
getGenerationHandle
Implements the interfaceArrangeable- Specified by:
getGenerationHandlein interfaceArrangeable- Returns:
- null
-
getDescriptionHtml
Implements the interfaceArrangeable. It returns the html code that represents the component description i.e. the formatted label of the field- Specified by:
getDescriptionHtmlin interfaceArrangeable- Parameters:
generationhandle- The handle of the generationes- TheEntitySetto which the element belongs- Returns:
- The html code of the label, or null if the field don't have it or is hidden
-
getVisibleDescriptionHtml
-
getHiddenHtml
Implements the interfaceArrangeable. It returns the hidden but active html part of an hidden input field.- Specified by:
getHiddenHtmlin interfaceArrangeable- Parameters:
generationhandle- The handle of the generationes- TheEntitySetto which the element belongs- Returns:
- The html code of the hidden part of the field or null if the field is visible.
-
getContentHtml
Implements 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- 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
-
getClassStyle
Compute the css classes associated to the field.- Parameters:
ro- read-only state- Returns:
- a string containing the very classes that will be assigned to the field.
-
addEventButtons
protected void addEventButtons(org.apache.ecs.html.TR tr, boolean ro) Create an event button for every event specified in the xml definition and add it to the tr- Parameters:
tr- table row where add the event buttonro- read-only state
-
addHintsButton
protected void addHintsButton(org.apache.ecs.html.TR tr, boolean ro) Create a button which opens the static hints dropdown menu and add it to the tr- Parameters:
tr- table row where add the hints buttonro- read-only state
-
getInsideEventButton
protected org.apache.ecs.Element getInsideEventButton(boolean ro) -
getInsideEventButton
protected org.apache.ecs.Element getInsideEventButton(int eventnumber, boolean ro) -
getHintsEventButton
protected org.apache.ecs.Element getHintsEventButton(boolean ro) -
buildDisplayScript
Every component can add a script to the StringBuilder, script executed when the component is displayed. The method add the script that controls the focus on the input field.- Overrides:
buildDisplayScriptin classComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-
getHintsFieldName
-
ajaxQuery
Description copied from class:ComponentMethod that must be extended to implements the Ajax interaction request / response logic for the Component- Overrides:
ajaxQueryin classComponent- Parameters:
request-HttpServletRequestresponse-HttpServletResponse
-
addHint
-
addHint
-
queryHints
- Throws:
InterruptedException
-
validateValue
public void validateValue(String name, Object value, boolean strong, Map arriving) throws ValidationException Description copied from interface:ValueValidatorMakes the validation to avoid tampering values of a component and it's value.
When a submit event to the server is triggered, is checked that the component is in the validator set, the value is not changed (if the component is RO), the value is changed with an allow value ecc ecc.- Specified by:
validateValuein interfaceValueValidator- Parameters:
name- The name associated to the component to validate.value- The value to validatestrong- Defines if the validation must be strong or not (for not null component).arriving- AMapwith all the components (and their values) arriving from submit.- Throws:
ValidationException- Raised if the validation failed.
-
validateUnchangingValue
protected void validateUnchangingValue(String name, Object value, Object published, boolean strong, Map arriving) throws ValidationException - Throws:
ValidationException
-
validateChangingValue
protected void validateChangingValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Throws:
ValidationException
-
validateNotNull
protected void validateNotNull(String name, Object value, boolean strong, Map arriving) throws ValidationException - Throws:
ValidationException
-
validateConcreteValue
protected void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Throws:
ValidationException
-
isImportant
public boolean isImportant()Gets if thisInputis important or not. An Input object is considered important if it cannot be null or if it is hidden.- Overrides:
isImportantin classControl- Returns:
trueif thisInputis important,falseotherwise.
-
setConfiguredProperty
Description copied from interface:overit.geocall.ux.configurability.UIConfigurableApply the user's properties customization into the component.- Specified by:
setConfiguredPropertyin interfaceoverit.geocall.ux.configurability.UIConfigurable- Overrides:
setConfiguredPropertyin classControl- Parameters:
properties- The map containing the configured properties to set
-
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 classControl- Parameters:
dataAttribute- a non-nullDataAttributeused to set model properties
-
getConfigurableProperties
Description copied from interface:overit.geocall.ux.configurability.UIConfigurableGets a set ofUIPropertyobject that represents the configurable UI properties that the object can handle.
EachUIPropertyobject, can be used to retrieve some information about the configurable property, for example it can be used to design the ui xml objects to inject into the properties configurability section of the ResponsiveGrids and TableVies configurability panels.
The property section are those section placed on the left side of the panel and shown when user click on the settings icon of a field to customize its properties.- Specified by:
getConfigurablePropertiesin interfaceoverit.geocall.ux.configurability.UIConfigurable- Overrides:
getConfigurablePropertiesin classControl- Returns:
- object that represents the configurable UI properties that the object can handle.
-
getFilterCriteriaToRemove
protected Set<SqlOperator> getFilterCriteriaToRemove(Set<overit.geocall.ux.configurability.UIProperty> properties)
-
setAUTOFOCUS()instead