Class ComponentLoaderUtils
java.lang.Object
io.jmix.flowui.kit.xml.layout.support.ComponentLoaderUtils
Spring-independent helpers for loading common component attributes from XML elements.
Shared by the runtime component loaders in the flowui module
and the Studio preview component loaders in flowui-kit.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadAlignItems(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) static voidloadAutocapitalize(com.vaadin.flow.component.textfield.HasAutocapitalize component, org.dom4j.Element element) static voidloadAutocomplete(com.vaadin.flow.component.textfield.HasAutocomplete component, org.dom4j.Element element) static voidloadAutocorrect(com.vaadin.flow.component.textfield.HasAutocorrect component, org.dom4j.Element element) static voidloadAutofocus(HasAutofocus component, org.dom4j.Element element) static voidloadBoxSizing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) static voidloadClassNames(com.vaadin.flow.component.HasStyle component, org.dom4j.Element element) loadDuration(org.dom4j.Element element, String attributeName) static voidloadEnabled(com.vaadin.flow.component.HasEnabled component, org.dom4j.Element element) static voidloadFlexibleAttributes(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) static voidloadHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) static Optional<com.vaadin.flow.component.icon.Icon> loadIconSetIcon(org.dom4j.Element element) Loads anIconfrom the givenElement.static Optional<com.vaadin.flow.component.icon.Icon> loadIconSetIcon(org.dom4j.Element element, String attributeName) Loads anIconfrom the givenElementfor the attribute with the given name and, if present, parses it into anIcon.static voidloadJustifyContent(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) static voidloadMargin(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) static voidloadMaxHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) static voidloadMaxWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) static voidloadMinHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) static voidloadMinWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) static voidloadPadding(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) static voidloadSizeAttributes(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) static voidloadSpacing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) static voidloadThemableAttributes(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) static voidloadThemeList(com.vaadin.flow.component.Component component, org.dom4j.Element element) static voidloadThemeNames(com.vaadin.flow.component.HasTheme component, org.dom4j.Element element) static voidloadValueAndElementAttributes(com.vaadin.flow.component.HasValueAndElement<?, ?> component, org.dom4j.Element element) static voidloadValueChangeMode(com.vaadin.flow.data.value.HasValueChangeMode component, org.dom4j.Element element) static voidloadWhiteSpace(com.vaadin.flow.component.HasText component, org.dom4j.Element element) static voidloadWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element)
-
Method Details
-
loadSpacing
public static void loadSpacing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadMargin
public static void loadMargin(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadPadding
public static void loadPadding(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadBoxSizing
public static void loadBoxSizing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadThemableAttributes
public static void loadThemableAttributes(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadAlignItems
public static void loadAlignItems(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) -
loadJustifyContent
public static void loadJustifyContent(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) -
loadFlexibleAttributes
public static void loadFlexibleAttributes(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) -
loadValueChangeMode
public static void loadValueChangeMode(com.vaadin.flow.data.value.HasValueChangeMode component, org.dom4j.Element element) -
loadThemeNames
public static void loadThemeNames(com.vaadin.flow.component.HasTheme component, org.dom4j.Element element) -
loadClassNames
public static void loadClassNames(com.vaadin.flow.component.HasStyle component, org.dom4j.Element element) -
loadThemeList
public static void loadThemeList(com.vaadin.flow.component.Component component, org.dom4j.Element element) -
loadValueAndElementAttributes
public static void loadValueAndElementAttributes(com.vaadin.flow.component.HasValueAndElement<?, ?> component, org.dom4j.Element element) -
loadAutofocus
-
loadAutocomplete
public static void loadAutocomplete(com.vaadin.flow.component.textfield.HasAutocomplete component, org.dom4j.Element element) -
loadAutocapitalize
public static void loadAutocapitalize(com.vaadin.flow.component.textfield.HasAutocapitalize component, org.dom4j.Element element) -
loadAutocorrect
public static void loadAutocorrect(com.vaadin.flow.component.textfield.HasAutocorrect component, org.dom4j.Element element) -
loadEnabled
public static void loadEnabled(com.vaadin.flow.component.HasEnabled component, org.dom4j.Element element) -
loadWhiteSpace
public static void loadWhiteSpace(com.vaadin.flow.component.HasText component, org.dom4j.Element element) -
loadWidth
public static void loadWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMaxWidth
public static void loadMaxWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMinWidth
public static void loadMinWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadHeight
public static void loadHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMaxHeight
public static void loadMaxHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMinHeight
public static void loadMinHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadSizeAttributes
public static void loadSizeAttributes(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadDuration
-
loadIconSetIcon
public static Optional<com.vaadin.flow.component.icon.Icon> loadIconSetIcon(org.dom4j.Element element) Loads anIconfrom the givenElement. The method tries to retrieve the "icon" attribute value from the element and, if present, parses it into anIcon. -
loadIconSetIcon
public static Optional<com.vaadin.flow.component.icon.Icon> loadIconSetIcon(org.dom4j.Element element, String attributeName) Loads anIconfrom the givenElementfor the attribute with the given name and, if present, parses it into anIcon.
-