Class CardTime
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocallapp.utilities.ux.ui.container.cardview.CardField
overit.geocallapp.utilities.ux.ui.container.cardview.CardTime
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified,Tool,HTMLRenderable
CardView field for displaying times/hours.
Supports custom time formatting and duration handling.
- Since:
- 21.0
- 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 TypeFieldDescriptionstatic final StringDefault time format patternprotected static final LogChannelFields inherited from class overit.geocallapp.utilities.ux.ui.container.cardview.CardField
dataContext, truncate, visibleFields 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
Methods inherited from class overit.geocallapp.utilities.ux.ui.container.cardview.CardField
applyTruncate, getDataContext, getHtml, getHtml, getLabelHtml, getTruncate, isVisible, setDataContext, setTRUNCATE, setVisibleMethods 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, getKEYLABEL, getLABEL, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isImportant, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexer
-
Field Details
-
LOG
-
DEFAULT_FORMAT
Default time format pattern- See Also:
-
-
Constructor Details
-
CardTime
public CardTime()
-
-
Method Details
-
setFORMAT
Sets the time format (XML framework method)- Parameters:
s- The time format pattern (e.g. "HH:mm", "HH:mm:ss", "hh:mm a")
-
getFormat
Gets the time format- Returns:
- The SimpleDateFormat used for formatting times
-
setup
protected void setup()Initializes the component (like ColumnTime.setup). Sets default format if not configured via XML. -
getFormattedValue
Implementation of getFormattedValue for CardTime. Returns the formatted time value.- Specified by:
getFormattedValuein classCardField- Returns:
- The formatted value as string
-