Class ComponentLoaderSupport
java.lang.Object
io.jmix.flowui.xml.layout.support.ComponentLoaderSupport
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component("flowui_ComponentLoaderSupport")
@Scope("prototype")
public class ComponentLoaderSupport
extends Object
implements org.springframework.context.ApplicationContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ComponentLoader.Contextprotected DatatypeRegistryImplprotected org.springframework.core.env.Environmentprotected LoaderSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyCss(String css, BiConsumer<String, String> setter) protected booleanisShortcutCombinationAlias(String shortcutCombination) protected booleanisShortcutCombinationConfig(String shortcutCombination) protected booleanisShortcutCombinationFQN(String shortcutCombination) voidloadAlignItems(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) voidloadAllowedCharPattern(com.vaadin.flow.component.shared.HasAllowedCharPattern component, org.dom4j.Element element, ComponentLoader.Context context) voidloadAriaLabel(com.vaadin.flow.component.HasAriaLabel component, org.dom4j.Element element) voidloadAutocapitalize(com.vaadin.flow.component.textfield.HasAutocapitalize component, org.dom4j.Element element) voidloadAutocomplete(com.vaadin.flow.component.textfield.HasAutocomplete component, org.dom4j.Element element) voidloadAutocorrect(com.vaadin.flow.component.textfield.HasAutocorrect component, org.dom4j.Element element) voidloadAutofocus(HasAutofocus component, org.dom4j.Element element) voidloadBadge(com.vaadin.flow.component.HasText component, org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version.voidloadBoxSizing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) voidloadClassNames(com.vaadin.flow.component.HasStyle component, org.dom4j.Element element) voidloadClickNotifierAttributes(com.vaadin.flow.component.ClickNotifier<?> component, org.dom4j.Element element) voidloadCss(com.vaadin.flow.component.Component component, org.dom4j.Element element) voidloadDatatype(SupportsDatatype<?> component, org.dom4j.Element element) protected voidloadDateFormat(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n datePickerI18n, org.dom4j.Element element) voidloadDateFormat(org.dom4j.Element element, Consumer<com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n> setter) Deprecated, for removal: This API element is subject to removal in a future version.useloadDateFormat(DatePicker.DatePickerI18n, Element)instead.voidloadDatePickerI18n(org.dom4j.Element element, Consumer<com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n> setter) Deprecated, for removal: This API element is subject to removal in a future version.voidloadDatePickerI18n(org.dom4j.Element element, Supplier<com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n> getter) loadDuration(org.dom4j.Element element, String attributeName) voidloadEnabled(com.vaadin.flow.component.HasEnabled component, org.dom4j.Element element) protected voidloadFirstDayOfWeek(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n datePickerI18n, org.dom4j.Element element) voidloadFlexibleAttributes(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) voidloadFocusableAttributes(com.vaadin.flow.component.Focusable<?> component, org.dom4j.Element element) voidloadFormatter(SupportsFormatter component, org.dom4j.Element element) loadFormatter(org.dom4j.Element element) Optional<com.vaadin.flow.data.renderer.ComponentRenderer>loadFragmentRenderer(org.dom4j.Element element) voidloadFragmentRenderer(org.dom4j.Element element, Consumer<com.vaadin.flow.data.renderer.ComponentRenderer> setter) voidloadHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidloadHelperText(com.vaadin.flow.component.HasHelper component, org.dom4j.Element element) Optional<com.vaadin.flow.component.icon.Icon>loadIcon(org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version.useloadIconSetIcon(Element)insteadvoidDeprecated, for removal: This API element is subject to removal in a future version.useIconLoaderSupport.loadIcon(Element, Consumer)insteadOptional<com.vaadin.flow.component.icon.Icon>loadIconSetIcon(org.dom4j.Element element) Loads anIconfrom the givenElement.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.voidloadJustifyContent(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) voidloadLabel(com.vaadin.flow.component.HasLabel component, org.dom4j.Element element) voidloadMargin(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) voidloadMaxHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidloadMaxWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidloadMetaClass(SupportsMetaClass component, org.dom4j.Element element) voidloadMinHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidloadMinWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidloadOverlayClass(com.vaadin.flow.component.shared.HasOverlayClassName component, org.dom4j.Element element) voidloadPadding(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) voidloadPlaceholder(com.vaadin.flow.component.HasPlaceholder component, org.dom4j.Element element) voidloadRequired(HasRequired resultComponent, org.dom4j.Element element, ComponentLoader.Context context) protected StringloadResourceString(String message) protected SupportsResponsiveSteps.ResponsiveSteploadResponsiveStep(org.dom4j.Element element) voidloadResponsiveSteps(SupportsResponsiveSteps resultComponent, org.dom4j.Element element) loadShortcut(org.dom4j.Element element, String attributeName) voidloadShortcutCombination(HasShortcutCombination component, org.dom4j.Element element) loadShortcutCombination(org.dom4j.Element element) protected StringloadShortcutCombinationFromAlias(String shortcutCombination) protected StringloadShortcutCombinationFromConfig(String shortcutCombination) protected StringloadShortcutCombinationFromFQNConfig(String shortcutCombination) voidloadSizeAttributes(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidloadSpacing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) voidloadTabIndex(com.vaadin.flow.component.Focusable<?> component, org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version.voidloadText(com.vaadin.flow.component.HasText component, org.dom4j.Element element) voidloadThemableAttributes(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) voidloadThemeList(com.vaadin.flow.component.Component component, org.dom4j.Element element) voidloadThemeNames(com.vaadin.flow.component.HasTheme component, org.dom4j.Element element) voidloadTitle(HasTitle component, org.dom4j.Element element, ComponentLoader.Context context) voidloadTooltip(com.vaadin.flow.component.shared.HasTooltip component, org.dom4j.Element element) voidloadTrimming(SupportsTrimming component, org.dom4j.Element element) protected voidloadValidation(SupportsValidation<?> component, org.dom4j.Element element) voidloadValidationAttributes(com.vaadin.flow.component.HasValidation component, org.dom4j.Element element, ComponentLoader.Context context) voidloadValueAndElementAttributes(com.vaadin.flow.component.HasValueAndElement<?, ?> component, org.dom4j.Element element) voidloadValueChangeMode(com.vaadin.flow.data.value.HasValueChangeMode component, org.dom4j.Element element) voidloadWhiteSpace(com.vaadin.flow.component.HasText component, org.dom4j.Element element) voidloadWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDatatypeRegistry(DatatypeRegistryImpl datatypeRegistry) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetLoaderSupport(LoaderSupport loaderSupport) protected void
-
Field Details
-
context
-
loaderSupport
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
environment
protected org.springframework.core.env.Environment environment -
datatypeRegistry
-
-
Constructor Details
-
ComponentLoaderSupport
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setEnvironment
@Autowired public void setEnvironment(org.springframework.core.env.Environment environment) -
setLoaderSupport
-
setDatatypeRegistry
-
loadResourceString
-
loadDatatype
-
loadSpacing
public void loadSpacing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadMargin
public void loadMargin(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadPadding
public void loadPadding(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadBoxSizing
public void loadBoxSizing(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadThemableAttributes
public void loadThemableAttributes(com.vaadin.flow.component.orderedlayout.ThemableLayout layout, org.dom4j.Element element) -
loadResponsiveSteps
-
loadResponsiveStep
-
loadAlignItems
public void loadAlignItems(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) -
loadJustifyContent
public void loadJustifyContent(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) -
loadFlexibleAttributes
public void loadFlexibleAttributes(com.vaadin.flow.component.orderedlayout.FlexComponent component, org.dom4j.Element element) -
loadText
public void loadText(com.vaadin.flow.component.HasText component, org.dom4j.Element element) -
loadTitle
public void loadTitle(HasTitle component, org.dom4j.Element element, ComponentLoader.Context context) -
loadLabel
public void loadLabel(com.vaadin.flow.component.HasLabel component, org.dom4j.Element element) -
loadRequired
public void loadRequired(HasRequired resultComponent, org.dom4j.Element element, ComponentLoader.Context context) -
loadValueChangeMode
public void loadValueChangeMode(com.vaadin.flow.data.value.HasValueChangeMode component, org.dom4j.Element element) -
loadTabIndex
@Deprecated(since="2.2", forRemoval=true) public void loadTabIndex(com.vaadin.flow.component.Focusable<?> component, org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, useloadFocusableAttributes(Focusable, Element)instead -
loadClickNotifierAttributes
public void loadClickNotifierAttributes(com.vaadin.flow.component.ClickNotifier<?> component, org.dom4j.Element element) -
loadFocusableAttributes
public void loadFocusableAttributes(com.vaadin.flow.component.Focusable<?> component, org.dom4j.Element element) -
loadCss
public void loadCss(com.vaadin.flow.component.Component component, org.dom4j.Element element) -
loadThemeNames
public void loadThemeNames(com.vaadin.flow.component.HasTheme component, org.dom4j.Element element) -
loadClassNames
public void loadClassNames(com.vaadin.flow.component.HasStyle component, org.dom4j.Element element) -
loadThemeList
public void loadThemeList(com.vaadin.flow.component.Component component, org.dom4j.Element element) -
loadBadge
@Deprecated(since="2.0.3", forRemoval=true) public void loadBadge(com.vaadin.flow.component.HasText component, org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version. -
loadValueAndElementAttributes
public void loadValueAndElementAttributes(com.vaadin.flow.component.HasValueAndElement<?, ?> component, org.dom4j.Element element) -
loadValidationAttributes
public void loadValidationAttributes(com.vaadin.flow.component.HasValidation component, org.dom4j.Element element, ComponentLoader.Context context) -
loadFormatter
-
loadHelperText
public void loadHelperText(com.vaadin.flow.component.HasHelper component, org.dom4j.Element element) -
loadPlaceholder
public void loadPlaceholder(com.vaadin.flow.component.HasPlaceholder component, org.dom4j.Element element) -
loadAutofocus
-
loadAutocomplete
public void loadAutocomplete(com.vaadin.flow.component.textfield.HasAutocomplete component, org.dom4j.Element element) -
loadAutocapitalize
public void loadAutocapitalize(com.vaadin.flow.component.textfield.HasAutocapitalize component, org.dom4j.Element element) -
loadAutocorrect
public void loadAutocorrect(com.vaadin.flow.component.textfield.HasAutocorrect component, org.dom4j.Element element) -
loadEnabled
public void loadEnabled(com.vaadin.flow.component.HasEnabled component, org.dom4j.Element element) -
loadAriaLabel
public void loadAriaLabel(com.vaadin.flow.component.HasAriaLabel component, org.dom4j.Element element) -
loadTrimming
-
loadWhiteSpace
public void loadWhiteSpace(com.vaadin.flow.component.HasText component, org.dom4j.Element element) -
loadWidth
public void loadWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMaxWidth
public void loadMaxWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMinWidth
public void loadMinWidth(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadHeight
public void loadHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMaxHeight
public void loadMaxHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadMinHeight
public void loadMinHeight(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadSizeAttributes
public void loadSizeAttributes(com.vaadin.flow.component.HasSize component, org.dom4j.Element element) -
loadDuration
-
loadDateFormat
@Deprecated(since="2.1", forRemoval=true) public void loadDateFormat(org.dom4j.Element element, Consumer<com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n> setter) Deprecated, for removal: This API element is subject to removal in a future version.useloadDateFormat(DatePicker.DatePickerI18n, Element)instead. -
loadIconSetIcon
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 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. -
loadIcon
@Deprecated(since="2.8", forRemoval=true) public Optional<com.vaadin.flow.component.icon.Icon> loadIcon(org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version.useloadIconSetIcon(Element)insteadLoads anIconfrom the givenElement. The method tries to retrieve the "icon" attribute value from the element and, if present, parses it into anIcon. -
loadIcon
@Deprecated(since="2.8", forRemoval=true) public void loadIcon(org.dom4j.Element element, Consumer<com.vaadin.flow.component.icon.Icon> setter) Deprecated, for removal: This API element is subject to removal in a future version.useIconLoaderSupport.loadIcon(Element, Consumer)insteadLoads anIconfrom the providedElementand applies the result using the specifiedConsumer. The method attempts to retrieve the "icon" attribute value from the given element, parse it into anIcon, and pass it to the setter if successfully parsed.- Parameters:
element- the XML element from which to load the iconsetter- theConsumerused to apply the loadedIcon
-
loadShortcutCombination
-
loadShortcutCombination
-
loadShortcut
-
loadMetaClass
-
loadDatePickerI18n
@Deprecated(since="2.1.2", forRemoval=true) public void loadDatePickerI18n(org.dom4j.Element element, Consumer<com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n> setter) Deprecated, for removal: This API element is subject to removal in a future version. -
loadDatePickerI18n
public void loadDatePickerI18n(org.dom4j.Element element, Supplier<com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n> getter) -
loadFragmentRenderer
public void loadFragmentRenderer(org.dom4j.Element element, Consumer<com.vaadin.flow.data.renderer.ComponentRenderer> setter) -
loadFragmentRenderer
public Optional<com.vaadin.flow.data.renderer.ComponentRenderer> loadFragmentRenderer(org.dom4j.Element element) -
loadDateFormat
protected void loadDateFormat(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n datePickerI18n, org.dom4j.Element element) -
loadFirstDayOfWeek
protected void loadFirstDayOfWeek(com.vaadin.flow.component.datepicker.DatePicker.DatePickerI18n datePickerI18n, org.dom4j.Element element) -
isShortcutCombinationFQN
-
loadShortcutCombinationFromFQNConfig
-
isShortcutCombinationConfig
-
loadShortcutCombinationFromConfig
-
isShortcutCombinationAlias
-
loadShortcutCombinationFromAlias
-
split
-
split
-
loadFormatter
-
loadValidation
-
applyCss
-
loadThemeList(com.vaadin.flow.component.Component, Element)instead