Class CardStaticView
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
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Identified,Tool,HTMLRenderable
- Direct Known Subclasses:
CardStaticViewSet
CardView field with value from StaticView.
Similar to ColumnStaticView but for cards instead of tables.
Uses a StaticView to get the value to display, searching for
the row corresponding to the specified field value.
- 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 ObjectgetFieldValueFromRow(ArrayList<Object> rowList, String fieldLabel) Gets the value of a field from the StaticView row using multilanguage supportprotected StringImplementation of getFormattedValue for CardStaticView.protected StringgetSingleValueFromStaticView(Object keyValue) Gets the value from StaticView for a single key value.protected StringgetValueFromStaticView(Map<String, Object> data) Gets the value from StaticView, following ColumnStaticView logicvoidSets which of the values of the StaticView are used in the output of the field.voidsetSTATICVIEW(String path) Sets the StaticView to use to build the output of the field.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
-
LOG
-
-
Constructor Details
-
CardStaticView
public CardStaticView()
-
-
Method Details
-
setSTATICVIEW
Sets the StaticView to use to build the output of the field.- Parameters:
path- String of the path of the StaticView to use. This path uses the Factory.
-
setCOLUMNLABEL
Sets which of the values of the StaticView are used in the output of the field. If there are multiple values, they are to be separated with a comma.- Parameters:
s- String of values to use as output. The values are to be separated with a comma.
-
getFormattedValue
Implementation of getFormattedValue for CardStaticView. Returns the StaticView lookup value with HTML escaping.- Specified by:
getFormattedValuein classCardField- Returns:
- The formatted value as string
-
getValueFromStaticView
Gets the value from StaticView, following ColumnStaticView logic- Parameters:
data- The data container- Returns:
- The formatted value from StaticView lookup
-
getSingleValueFromStaticView
Gets the value from StaticView for a single key value. This method can be reused by subclasses for multiple key lookups.- Parameters:
keyValue- The key value to lookup in StaticView- Returns:
- The formatted value from StaticView lookup, or empty string if not found
-
getFieldValueFromRow
Gets the value of a field from the StaticView row using multilanguage support- Parameters:
rowList- The row data from StaticViewfieldLabel- The field name to extract- Returns:
- The field value, or null if not found
-