Package overit.geocall.basic.ui.control
Class InputTime
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.InputTime
- 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:
InputTimeDataCollection
@Component
@Configurable
@FilterCriteria({IS_EQUAL_TO,IS_NOT_EQUAL_TO,IS_GREATER_THAN,IS_GREATER_THAN_OR_EQUAL_TO,IS_LESS_THAN,IS_LESS_THAN_OR_EQUAL_TO,IS_NULL,IS_NOT_NULL})
public class InputTime
extends InputRegExp
The class implements a textual Input field for the time
- 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 booleanprotected booleanprotected booleanprotected Stringprotected Iconprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected SimpleDateFormatprotected Stringprotected static LogChannelstatic final Stringstandard time format accepted as input (seeSimpleDateFormatandsetSDF(s))Fields 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 TypeMethodDescriptionorg.apache.ecs.ElementgetContentHtml(Object generationhandle, EntitySet es) Override the methodgetContentHtml(generationhandle, es).Gets the default value set for this component.protected org.apache.ecs.ElementgetEventButton(boolean ro, String script) org.apache.ecs.ElementgetHiddenHtml(Object generationhandle, EntitySet es) Override the methodgetHiddenHtml(generationhandle, es).org.apache.ecs.ElementReturns the html of the Input elementintGets the current interval setting for the time picker.protected Stringprotected Stringprotected Stringprotected StringvoidsetINTERVAL(String interval) Sets the interval in minutes for the time picker dropdown.voidSets the range of hours that can be set for the timevoidSets the range of minutes that can be set for the timevoidSets the step for the creation of the minute's item in the picker; determines which values are acceptable for minutesvoidSet the field as a part of a time range.voidSet the time format with the string passed as input (seeSimpleDateFormat)protected voidsetup()Setup the Componentprotected voidprotected Dateprotected voidprotected voidvalidateConcreteValue(String name, Object value, boolean strong, Map arriving) Methods inherited from class overit.geocall.basic.ui.control.InputRegExp
setModelProperties, setREGEXPMethods inherited from class overit.geocall.basic.ui.control.Input
addEventButtons, addHint, addHint, addHintsButton, ajaxQuery, buildDisplayScript, connect, control, getClassStyle, getConfigurableProperties, getDescriptionHtml, getFilterCriteriaToRemove, getFullSize, getGenerationHandle, getHIDDEN, getHintsEventButton, getHintsFieldName, getInsideEventButton, getInsideEventButton, getLetterCase, getNOTNULL, getSize, getVisibleDescriptionHtml, isImportant, isNotNull, isValueIgnoredByCriterion, queryHints, registerValidators, 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, setNAME, setNOTNULL, setNUMERIC, setPARAM, setPLACEHOLDER, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, setVALUE, 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
-
SDF
standard time format accepted as input (seeSimpleDateFormatandsetSDF(s))- See Also:
-
LOG
-
_strSdf
-
_sdf
-
_hourSystem
-
_range
protected int _range -
_accept00
protected boolean _accept00 -
_accept24
protected boolean _accept24 -
_msgConstraintsError
-
_constrainedHours
protected boolean _constrainedHours -
_constrainedMinutes
protected boolean _constrainedMinutes -
_msg2
-
_iconPicker
-
-
Constructor Details
-
InputTime
public InputTime()
-
-
Method Details
-
setup
protected void setup()Description copied from class:ComponentSetup the Component- Overrides:
setupin classInputRegExp
-
setupTimeFormat
protected void setupTimeFormat() -
setINTERVAL
Sets the interval in minutes for the time picker dropdown. This determines the granularity of time selection in the picker.- Parameters:
interval- String representation of the interval value in minutes- Throws:
NumberFormatException- if the provided string cannot be parsed as an integer
-
getINTERVAL
public int getINTERVAL()Gets the current interval setting for the time picker.- Returns:
- The interval value in minutes
-
setSDF
Set the time format with the string passed as input (seeSimpleDateFormat)- Parameters:
s- String rappresenting the new format
-
setMENUHOURRANGE
Sets the range of hours that can be set for the time- Parameters:
s- The string that determines a range using the from-to format or separating the values using commas
-
setMENUMINUTERANGE
Sets the range of minutes that can be set for the time- Parameters:
s- the string that determines a range using the from-to format or separating the values using commas
-
setMENUMINUTESTEP
Sets the step for the creation of the minute's item in the picker; determines which values are acceptable for minutes- Parameters:
s- Possible values are: 30 (means that the minutes can be :00 or :30), 15 (means that the minutes can be :00, :15, :30 or :45), 10(means that the minutes can be :00, :10, :20, :30, :40, :50) and 5 (means that the minutes can be :00, :05, :10, :15, :20, :25, :30, :35, :40, :45, :50, :55); if the value is not among these, it will be forced to 5
-
setRANGE
Set the field as a part of a time range.- Parameters:
s- String to define which type of range you are defining. Below are the allowed values:
-
validate
- Overrides:
validatein classInputRegExp
-
getEventButton
-
getOreList
-
getMinList
-
getHiddenHtml
Override the methodgetHiddenHtml(generationhandle, es). Before to return hidden html, set the active components of the InputTime element.- Specified by:
getHiddenHtmlin interfaceArrangeable- Overrides:
getHiddenHtmlin classInput- Parameters:
generationhandle- the unique generating handlees- TheEntitySetto which the element belongs- Returns:
- The html code of the hidden part of the field or null if the field is visible.
-
getContentHtml
Override the methodgetContentHtml(generationhandle, es). 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 unique generating handlees- TheEntitySetto which the element belongs- Returns:
- The html code of the input field or null if the field don't have a graphical representation
-
getHtml
Description copied from class:InputReturns the html of the Input element -
prepareName
- Overrides:
prepareNamein classInput
-
prepareValue
- Overrides:
prepareValuein classInput
-
staticValue
-
validateConcreteValue
protected void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException - Overrides:
validateConcreteValuein classInputRegExp- 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 classInput- Returns:
- The default value set for this component
-