Class HtmlUtils

java.lang.Object
overit.geocallapp.utilities.ux.ui.util.HtmlUtils

public class HtmlUtils extends Object
A utility class for generating HTML elements to format and display data as HTML attributes
Since:
19.0
  • Field Details

  • Method Details

    • formatAttributes

      public static final org.apache.ecs.Element formatAttributes(HashGetter data, Map<String,String> map)
    • formatAttributes

      public static final org.apache.ecs.Element formatAttributes(HashGetter data, Map<String,String> map, boolean skippNulls)
      Parameters:
      data - the HashGetter with the data to format
      map - a mapping FIELD -> Label to know how format the data
      Returns:
      an HTML element with the data formatted as label: value
    • formatAttributes

      public static final org.apache.ecs.Element formatAttributes(HashGetter data, List<Map.Entry<String,String>> items)
    • formatAttributes

      public static final org.apache.ecs.Element formatAttributes(HashGetter data, List<Map.Entry<String,String>> items, boolean skippNulls)
    • addItemsElement

      protected static void addItemsElement(org.apache.ecs.html.Div out, HashGetter data, Collection<Map.Entry<String,String>> items, boolean skipNulls)
    • buildItem

      public static org.apache.ecs.Element buildItem(String label, Object value)