All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified, Tool, HTMLRenderable
Direct Known Subclasses:
CardStaticViewSet

@Component @Configurable public class CardStaticView extends CardField
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
  • Field Details

  • Constructor Details

    • CardStaticView

      public CardStaticView()
  • Method Details

    • setSTATICVIEW

      public void setSTATICVIEW(String path)
      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

      public void setCOLUMNLABEL(String s)
      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

      protected String getFormattedValue()
      Implementation of getFormattedValue for CardStaticView. Returns the StaticView lookup value with HTML escaping.
      Specified by:
      getFormattedValue in class CardField
      Returns:
      The formatted value as string
    • getValueFromStaticView

      protected String getValueFromStaticView(Map<String,Object> data)
      Gets the value from StaticView, following ColumnStaticView logic
      Parameters:
      data - The data container
      Returns:
      The formatted value from StaticView lookup
    • getSingleValueFromStaticView

      protected String getSingleValueFromStaticView(Object keyValue)
      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

      protected Object getFieldValueFromRow(ArrayList<Object> rowList, String fieldLabel)
      Gets the value of a field from the StaticView row using multilanguage support
      Parameters:
      rowList - The row data from StaticView
      fieldLabel - The field name to extract
      Returns:
      The field value, or null if not found