Class LoaderUtils
java.lang.Object
io.jmix.flowui.kit.xml.layout.support.LoaderUtils
Spring-independent helpers for reading typed values from XML attributes.
Shared by the runtime component loaders in the flowui module
and the Studio preview component loaders in flowui-kit.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyCss(String css, BiConsumer<String, String> setter) Parses CSS declarations separated by semicolons and passes every property to the given setter.loadBoolean(org.dom4j.Element element, String attributeName) static voidloadBoolean(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) loadDouble(org.dom4j.Element element, String attributeName) static voidloadDouble(org.dom4j.Element element, String attributeName, Consumer<Double> setter) static <T extends Enum<T>>
voidloadInteger(org.dom4j.Element element, String attributeName) static voidloadInteger(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) loadString(org.dom4j.Element element, String attributeName) loadString(org.dom4j.Element element, String attributeName, boolean emptyToNull) static voidloadString(org.dom4j.Element element, String attributeName, Consumer<String> setter) static void
-
Method Details
-
loadString
-
loadString
-
loadBoolean
-
loadInteger
-
loadDouble
-
loadEnum
-
loadString
-
loadBoolean
-
loadInteger
-
loadDouble
-
loadEnum
-
split
-
split
-
applyCss
Parses CSS declarations separated by semicolons and passes every property to the given setter.- Parameters:
css- CSS declarations separated by semicolonssetter- consumer of a property name and its value- Throws:
IllegalArgumentException- if a declaration has no separator or an empty property name
-