Class HtmlUtils
java.lang.Object
overit.geocallapp.utilities.ux.ui.util.HtmlUtils
A utility class for generating HTML elements to format and display data as HTML attributes
- Since:
- 19.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddItemsElement(org.apache.ecs.html.Div out, HashGetter data, Collection<Map.Entry<String, String>> items, boolean skipNulls) static org.apache.ecs.Elementstatic final org.apache.ecs.ElementformatAttributes(HashGetter data, List<Map.Entry<String, String>> items) static final org.apache.ecs.ElementformatAttributes(HashGetter data, List<Map.Entry<String, String>> items, boolean skippNulls) static final org.apache.ecs.ElementformatAttributes(HashGetter data, Map<String, String> map) static final org.apache.ecs.ElementformatAttributes(HashGetter data, Map<String, String> map, boolean skippNulls)
-
Field Details
-
CSS_ATTRIBUTES
- See Also:
-
CSS_ATTRIBUTES_ITEM
- See Also:
-
CSS_ATTRIBUTES_ITEM_LABEL
- See Also:
-
CSS_ATTRIBUTES_ITEM_VALUE
- See Also:
-
-
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 formatmap- 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
-