Package overit.geocall.basic.ui.control
Class InputDate
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.InputDate
- 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_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 InputDate
extends Input
This class extends
The default date format set is dd/MM/yy.
Input field to work with dates.The default date format set is dd/MM/yy.
- 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 Iconprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringstatic final StringThe constant used to compare input in thesetRANGE(s)as a "from" constraint.protected static LogChannelstatic final Stringstandard date format accepted as read input (seeSimpleDateFormatandsetSDF(s))static final Stringstandard date format accepted as write input (seeSimpleDateFormatandsetSDFW(s))static final StringThe constant used to compare input in thesetRANGE(s)as a "to" constraint.Fields 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).protected Stringprotected StringvoidSet an event on the field that is launched when the field lose the focus.voidDefines the name of the anchor that is used to reposition the scrolling of the page following the execution of the autoevent associated with the Input.voidSet the message that will appear into a javascript pop up when the autoevent is triggered.voidSet the value that will be passed to thehash getteras a parameter when the autoevent is triggered.voidSet what day is the first of the week when user open the calendar.voidSet a minimum constraint in the date field.voidIndicate the name of the field to use as "from" constraint.voidSet the field as a part of a date range.voidSet the date format will be sent to server with submit of the field (seeSimpleDateFormat).voidSet the date format to show in the field or accepted if the user enter the value manually (seeSimpleDateFormat).voidSet a maximum constraint in the date field.voidIndicate the name of the field to use as "to" constraint.protected voidsetup()Setup the Componentprotected Dateprotected voidMethods 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, getHtml, 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, setModelProperties, setMSG, setNAME, setNOTNULL, setNUMERIC, setPARAM, setPLACEHOLDER, setPROMPT, setPROMPTEMPTY, setQUERY, setROEVENT, setSIZE, setupAutocomplete, setVALUE, 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
-
_autoevent
-
_autoeventparam
-
_autoeventmsg
-
_autoeventanchor
-
_controlIcon
-
LOG
-
FROM
The constant used to compare input in thesetRANGE(s)as a "from" constraint.- See Also:
-
TO
The constant used to compare input in thesetRANGE(s)as a "to" constraint.- See Also:
-
SDF
standard date format accepted as read input (seeSimpleDateFormatandsetSDF(s))- See Also:
-
SDFWRITE
standard date format accepted as write input (seeSimpleDateFormatandsetSDFW(s))- See Also:
-
_strSdfR
-
_strSdfW
-
_range
protected int _range -
_msgMonthsList
-
_msgShortMonthsList
-
_msgDaysList
-
_dayTypes
-
_firstDayOfWeek
-
_regexp
-
_to
-
_toName
-
_from
-
_fromName
-
_msgErroreRange
-
-
Constructor Details
-
InputDate
public InputDate()Creates a new instance of InputDate
-
-
Method Details
-
setAUTOEVENTANCHOR
Defines the name of the anchor that is used to reposition the scrolling of the page following the execution of the autoevent associated with the Input. The name must correspond to the value of a reference attribute of aGridor aSection, set using the appropriate set methods (Grid.setREF(String),Section.setREF(String)).
The relocation mechanism works only with non-Ajax events, the ones that reload the page.- Parameters:
s- The name of the anchor
-
setAUTOEVENT
Set an event on the field that is launched when the field lose the focus.- Parameters:
s- Name of the event to launch when the field lose the focus.
-
setAUTOEVENTPARAM
Set the value that will be passed to thehash getteras a parameter when the autoevent is triggered. The key of the value into hash getter will be"param"- Parameters:
s- Value passed to thehash getteras a parameter
-
setAUTOEVENTMSG
Set the message that will appear into a javascript pop up when the autoevent is triggered.- Parameters:
s- Message to show into the javascript pop up.
-
setup
protected void setup()Description copied from class:ComponentSetup the Component -
setSDF
Set the date format will be sent to server with submit of the field (seeSimpleDateFormat). If it isn't set the default value is"dd/MM/yy".- Parameters:
s- The string of the date format.
-
setSDFWRITE
Set the date format to show in the field or accepted if the user enter the value manually (seeSimpleDateFormat). If it isn't set the default value is"dd/MM/yyyy".- Parameters:
s- The string of the date format.
-
setFIRSTDAYOFWEEK
Set what day is the first of the week when user open the calendar. The default day is monday.- Parameters:
s- Character to set the first day of the week (case insensitive). The possible value are:"m": Monday;"s": Sunday.
-
setRANGE
Set the field as a part of a date range. -
setFROM
Set a minimum constraint in the date field. It is a inclusive limit.- Parameters:
s- String with the value to set as limit. It is possible insert a string in the format"dd/MM/yyyy"or the string"now"to indicate the current date as limit.
-
setTO
Set a maximum constraint in the date field. It is a inclusive limit.- Parameters:
s- String with the value to set as limit. It is possible insert a string in the format"dd/MM/yyyy"or the string"now"to indicate the current date as limit.
-
setFROMNAME
Indicate the name of the field to use as "from" constraint.- Parameters:
s- Name of the field to use
-
setTONAME
Indicate the name of the field to use as "to" constraint.- Parameters:
s- Name of the field to use
-
validate
-
getEventButton
-
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
-
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.
-
prepareName
- Overrides:
prepareNamein classInput
-
prepareValue
- Overrides:
prepareValuein classInput
-
staticValue
-
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
-