Class CardStaticViewSet
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.CardStaticView
overit.geocallapp.utilities.ux.ui.container.cardview.CardStaticViewSet
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified,Tool,HTMLRenderable
CardView field for displaying multiple values from StaticView based on comma-separated IDs.
Extends CardStaticView to handle lists of IDs instead of single ID.
Takes a field containing comma-separated IDs (e.g., "1,2,3"), performs StaticView lookup
for each ID, and concatenates the results using a configurable separator.
- 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, 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 ObjectconvertKeyValue(String keyValue) Converts string key value to appropriate type for StaticView lookup.Gets the separator used to split the input IDsGets the separator used between multiple values in the outputprotected StringgetValueFromStaticView(Map<String, Object> data) Gets the value from StaticView for multiple IDs.voidsetIDSEPARATOR(String idSeparator) Sets the separator used to split the input IDsvoidsetSEPARATOR(String separator) Sets the separator to use between multiple values in the outputMethods inherited from class overit.geocallapp.utilities.ux.ui.container.cardview.CardStaticView
getFieldValueFromRow, getFormattedValue, getSingleValueFromStaticView, setCOLUMNLABEL, setSTATICVIEWMethods 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
-
LOG
-
-
Constructor Details
-
CardStaticViewSet
public CardStaticViewSet()
-
-
Method Details
-
setSEPARATOR
Sets the separator to use between multiple values in the output- Parameters:
separator- The separator string (default: ", ")
-
getSeparator
Gets the separator used between multiple values in the output- Returns:
- The separator string
-
setIDSEPARATOR
Sets the separator used to split the input IDs- Parameters:
idSeparator- The ID separator string (default: ",")
-
getIdSeparator
Gets the separator used to split the input IDs- Returns:
- The ID separator string
-
getValueFromStaticView
Gets the value from StaticView for multiple IDs. Overrides parent method to handle comma-separated ID lists.- Overrides:
getValueFromStaticViewin classCardStaticView- Parameters:
data- The data container- Returns:
- The formatted values from StaticView lookups, separated by the configured separator
-
convertKeyValue
Converts string key value to appropriate type for StaticView lookup. Tries Long first, then falls back to String.- Parameters:
keyValue- The string key value- Returns:
- The converted key value
-