Package overit.geocall.basic.ui.control
Class OutputDTZ
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.Output
overit.geocall.basic.ui.control.OutputDTZ
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Arrangeable,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
The class implements an
Output field to the graphic user interface
element used to display a date, a time and a time zone in output.
It's possible configure the field to show only components you want.- 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 Stringprotected SimpleDateFormatprotected SimpleDateFormatprotected Stringprotected Stringprotected ForeignFieldprotected Stringprotected Stringstatic final Stringstandard date format accepted as read input (seeSimpleDateFormatstatic final Stringstandard date format accepted as write input (seeSimpleDateFormatstatic final Stringstandard time format accepted as input (seeSimpleDateFormatandsetSDFT(s))Fields inherited from class overit.geocall.basic.ui.control.Output
_event, _eventicon, _eventsnumber, _eventtitle, _ff, _key, _label2, _minlength, _msg, _nowrap, _numeric, _param, _prompt, _size, _strong, _value, promptEmpty, truncate, valueWrapFields 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.ElementgetHiddenHtml(Object generationhandle, EntitySet es) Returns the hidden but active html part of an hidden componentprotected Stringprotected TimeZonevoidSet the components to show in output.voidSet the output field as a part of a time range.voidSet the date format to show in the output field (seeSimpleDateFormat).voidSet the time format to show in the output field (seeSimpleDateFormat).protected voidsetup()Setup the ComponentvoidsetZONENAME(String zonename) Set the name of the field to use as time zone field.voidsetZONEVALUE(String zonevalue) Set the time zone component.Methods inherited from class overit.geocall.basic.ui.control.Output
getContentHtml, getDescriptionHtml, getGenerationHandle, getHtml, getHtmlValue, setEVENT, setEVENTMSG, setEVENTPARAM, setEVENTPROMPT, setEVENTTITLE, setICON, setKEY, setLABEL2, setMINLENGTH, setNAME, setNOWRAP, setNUMERIC, setPROMPTEMPTY, setSIZE, setSTRONG, setStyle, setTRUNCATE, setVALUE, setVALUEWRAPMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, 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, setIMPORTANT, 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
-
_componentDate
protected boolean _componentDate -
_componentTime
protected boolean _componentTime -
_componentZone
protected boolean _componentZone -
_zonename
-
_zonevalue
-
_range
-
hourSystem
-
SDF_DATE_READ
standard date format accepted as read input (seeSimpleDateFormat- See Also:
-
SDF_DATE_WRITE
standard date format accepted as write input (seeSimpleDateFormat- See Also:
-
SDF_TIME
standard time format accepted as input (seeSimpleDateFormatandsetSDFT(s))- See Also:
-
_sSdfT
-
_sSdfD
-
_sdfD
-
_sdfT
-
-
Constructor Details
-
OutputDTZ
public OutputDTZ()Creates a new instance of OutputDTZ
-
-
Method Details
-
setCOMPONENTS
Set the components to show in output. The possible components are date, time and time zone.- Parameters:
s- The string that contains the combination of the three characters to use to configure which components to display:'d': date;'t': time;'z': time zone.
-
setZONENAME
Set the name of the field to use as time zone field. The field having this attribute is not time zone component, instead the field having the name passed as a parameter must be a time zone field.- Parameters:
zonename- The string that indicate the name of field to use as time zone settings.
-
setZONEVALUE
Set the time zone component. The value to be set must exists or in the package within company.properties or within the time zone database of IANA.- Parameters:
zonevalue- The string that contains the value of time zone to set.
-
setRANGE
Set the output field as a part of a time range. It can be an interval of hours or dates. If the output field is used as part of a range of dates, the time component of field is not be displayed. The same with the date component in case the field is a part of a time range.- Parameters:
s- String to define which type of range you are defining. Below are the allowed values:
"DATE_FROM": set the start of the date range. If the date isn't set, it is automatically set toDATE_MIN"DATE_TO": set the end of the date range. If the date isn't set, it is automatically set toDATE_MAX"TIME_FROM": set the start of the time range. If the time isn't set, it is automatically set toTIME_MIN"TIME_TO": set the end of the time range. If the time isn't set, it is automatically set toTIME_MAX"FULL": set the range as date and hour passed.
-
setSDFD
Set the date format to show in the output field (seeSimpleDateFormat). If it isn't set the default value is the value of the key"DATE_FORMAT_WRITE"in dictionary. If this also does not exits, set the format with the default value:""dd/MM/yyyy""- Parameters:
s- The string of the date format.
-
setSDFT
Set the time format to show in the output field (seeSimpleDateFormat). If it isn't set the default value is""HH:mm"".- Parameters:
s- The string of the time format.
-
setup
protected void setup()Description copied from class:ComponentSetup the Component -
getHiddenHtml
Description copied from interface:ArrangeableReturns the hidden but active html part of an hidden component- Specified by:
getHiddenHtmlin interfaceArrangeable- Overrides:
getHiddenHtmlin classOutput- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the hidden part of the component
-
prepareValue
- Overrides:
prepareValuein classOutput
-
prepareValueZ
-