Class CardDuration
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.CardDuration
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified,Tool,HTMLRenderable
CardView field to represent an amount of minutes as Day, Hours and Minutes.
Similar to ColumnDuration but for cards instead of tables.
Examples:
- 90 minutes → "1h 30m"
- 1500 minutes → "1d 1h"
- 0 minutes → "" (if showIfZero=false) or "0m" (if showIfZero=true)
- 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
FieldsFields inherited from class overit.geocallapp.utilities.ux.ui.container.cardview.CardField
dataContext, LOG, 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
Modifier and TypeMethodDescriptionprotected StringImplementation of getFormattedValue for CardDuration.voidSets whether to show days in the duration (XML framework method)voidSets whether to show zero durations (XML framework method)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, setup, setValuesContainer, stringForJs, tabIndexer
-
Field Details
-
showIfZero
protected boolean showIfZero -
showDays
protected boolean showDays
-
-
Constructor Details
-
CardDuration
public CardDuration()
-
-
Method Details
-
setSHOWIFZERO
Sets whether to show zero durations (XML framework method)- Parameters:
s- String value ("true"/"false") to control zero duration display
-
setSHOWDAYS
Sets whether to show days in the duration (XML framework method)- Parameters:
s- String value ("true"/"false") to control days display
-
getFormattedValue
Implementation of getFormattedValue for CardDuration. Returns the formatted duration value.- Specified by:
getFormattedValuein classCardField- Returns:
- The formatted value as string
-