Package overit.geocall.basic.ui.control
Class InputTimeRange
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.InputTimeRange
- 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
@Ignore("FILTER_CRITERION")
public class InputTimeRange
extends InputRegExp
This component extends
InputRegExp and must be used to create an input field for
a range of time.
The output string will be composed of how many values are given as input
(none, start time or end time) and predefined labels.- 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 Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected SimpleDateFormatprotected Stringprotected Stringprotected Stringstatic final Stringprotected Stringstatic final StringFields 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 TypeMethodDescriptionprotected voidaddAttributes(org.apache.ecs.html.Input i0, org.apache.ecs.html.Input i1, org.apache.ecs.html.Input i2, boolean ro, boolean enabled) voidEvery component can add a script to the StringBuilder, script executed when the component is displayed.org.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Implements the interfaceArrangeable.org.apache.ecs.ElementgetDescriptionHtml(Object generationhandle, EntitySet es) Implements the interfaceArrangeable.protected Stringprotected booleanprotected Stringprotected Stringprotected voidvoidSets the name key of the first value to search in the passed values to use as start range.voidSets the name key of the first value to search in the passed values to use as start range.voidSets the name key of the second value to search in the passed values to use as end range.voidSets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is not subject to translation.
It is same thing usesetPlaceholder1().voidSets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is subject to translation.
It is same thing usesetPLACEHOLDER1().voidSets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is not subject to translation.
It is same thing usesetPlaceholder().voidSets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
* The text is subject to translation.
It is same thing usesetPLACEHOLDER().voidSets the placeholder of the field to use as end range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is not subject to translation.voidSets the placeholder of the field to use as end range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
* The text is subject to translation.voidSet the time format to apply on value find in the passed value, so when you are usingsetNAME(),setNAME1()orsetNAME2().protected voidsetup()Setup the Componentprotected voidvoidSets the first value to use as start range.voidSets the first value to use as start range.voidSets the second value to use as end range.protected voidprotected voidprotected voidvoidvalidateConcreteValue(String name, Object value, boolean strong, Map arriving) Methods inherited from class overit.geocall.basic.ui.control.InputRegExp
setModelProperties, setREGEXP, validateMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, connect, control, getClassStyle, getConfigurableProperties, getDefaultValue, getFilterCriteriaToRemove, getFullSize, getGenerationHandle, getHIDDEN, getHiddenHtml, getHintsEventButton, getHintsFieldName, getHtml, getInsideEventButton, getInsideEventButton, getLetterCase, getNOTNULL, getSize, getVisibleDescriptionHtml, isImportant, isNotNull, isValueIgnoredByCriterion, prepareName, prepareValue, queryHints, 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, setNOTNULL, setNUMERIC, setPARAM, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, 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
-
_sSdf
-
_sdf
-
_groupname
-
_name1
-
_name2
-
_value1
-
_value2
-
_placeholder1
-
_placeholder2
-
hourSystem
-
FROM
- See Also:
-
TO
- See Also:
-
_msg2
-
_msgRangeInvalido
-
-
Constructor Details
-
InputTimeRange
public InputTimeRange()
-
-
Method Details
-
setup
protected void setup()Description copied from class:ComponentSetup the Component- Overrides:
setupin classInputRegExp
-
setupTimeFormat
protected void setupTimeFormat() -
registerValidators
protected void registerValidators()- Overrides:
registerValidatorsin classInput
-
setVALUE1
Sets the first value to use as start range. This value is overwritten fromsetNAME()orsetNAME1().
It's possible to use this value singly to create a"after"range.
It is same thing usesetVALUE().- Parameters:
s- The value to set as start range.
-
setVALUE
Sets the first value to use as start range. This value is overwritten fromsetNAME()orsetNAME1().
It's possible to use this value singly to create a"after"range.
It is same thing usesetVALUE1(). -
setVALUE2
Sets the second value to use as end range. This value is overwritten fromsetNAME2().
It's possible to use this value singly to create a"by"range.- Parameters:
s- The value to set as end range.
-
setNAME
Sets the name key of the first value to search in the passed values to use as start range. This value overwritessetVALUE()andsetVALUE1().
It's possible to use this value singly to create a"after"range.
It is same thing usesetNAME1().- Overrides:
setNAMEin classInput- Parameters:
s- The string rappresents the key of the value in the passed values (seeControl.getValues()).
-
setNAME1
Sets the name key of the first value to search in the passed values to use as start range. This value overwritessetVALUE()andsetVALUE1().
It's possible to use this value singly to create a"after"range.
It is same thing usesetNAME().- Parameters:
s- The string rappresents the key of the value in the passed values (seeControl.getValues()).
-
setNAME2
Sets the name key of the second value to search in the passed values to use as end range. This value overwritessetVALUE2().
It's possible to use this value singly to create a"by"range.- Parameters:
s- The string rappresents the key of the value in the passed values (seeControl.getValues()).
-
setSDF
Set the time format to apply on value find in the passed value, so when you are usingsetNAME(),setNAME1()orsetNAME2().- Parameters:
s- String rappresenting the new format (seeSimpleDateFormat).
-
setPLACEHOLDER
Sets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is subject to translation.
It is same thing usesetPLACEHOLDER1().- Overrides:
setPLACEHOLDERin classInput- Parameters:
s- The string that will appear as a placeholder in the start range field
-
setPLACEHOLDER1
Sets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
* The text is subject to translation.
It is same thing usesetPLACEHOLDER().- Parameters:
s- The string that will appear as a placeholder in the start range field
-
setPLACEHOLDER2
Sets the placeholder of the field to use as end range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
* The text is subject to translation.- Parameters:
s- The string that will appear as a placeholder in the end range field
-
validate1
-
validate2
-
validate0
-
getGroupName
-
getDescriptionHtml
Description copied from class:InputImplements the interfaceArrangeable. It returns the html code that represents the component description i.e. the formatted label of the field- Specified by:
getDescriptionHtmlin interfaceArrangeable- Overrides:
getDescriptionHtmlin classInput- 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
-
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 classInput- 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
protected void addAttributes(org.apache.ecs.html.Input i0, org.apache.ecs.html.Input i1, org.apache.ecs.html.Input i2, boolean ro, boolean enabled) -
prepareValue0
protected boolean prepareValue0() -
prepareValue1
-
prepareValue2
-
buildDisplayScript
Description copied from class:InputEvery 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 classInput- Parameters:
sb- The StringBuilder on which we want to add the script
-
setPlaceholder
Sets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is not subject to translation.
It is same thing usesetPlaceholder1().- Parameters:
s- The string that will appear as a placeholder in the start range field
-
setPlaceholder1
Sets the placeholder of the field to use as start range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is not subject to translation.
It is same thing usesetPlaceholder().- Parameters:
s- The string that will appear as a placeholder in the start range field
-
setPlaceholder2
Sets the placeholder of the field to use as end range, the short hint that usually describes the expected value that appears in the field before the user enters a value.
The text is not subject to translation.- Parameters:
s- The string that will appear as a placeholder in the end range field
-
validateConcreteValue
public void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Overrides:
validateConcreteValuein classInputRegExp- Throws:
ValidationException
-