Class AbstractComponentLoader<T extends com.vaadin.flow.component.Component>

java.lang.Object
io.jmix.flowui.xml.layout.loader.AbstractComponentLoader<T>
All Implemented Interfaces:
ComponentLoader<T>
Direct Known Subclasses:
AbstractComboBoxLoader, AbstractContainerLoader, AbstractDropdownButtonLoader, AbstractGridLoader, AbstractHtmlComponentLoader, AbstractIconLoader, AbstractLoginFormLoader, AbstractMultiSelectComboBoxLoader, AbstractSingleFilterComponentLoader, AbstractUploadFieldLoader, AbstractValuePickerLoader, AvatarLoader, BigDecimalFieldLoader, ButtonLoader, ChartLoader, CheckboxGroupLoader, CheckboxLoader, CodeEditorLoader, DatePickerLoader, DateTimePickerLoader, DrawerToggleLoader, DynamicAttributesPanelLoader, EmailFieldLoader, FormLayoutLoader, FormLayoutLoader.FormItemLoader, FragmentElementLoader, FullCalendarLoader, GenericComponentLoader, GenericFilterLoader, GeoMapLoader, GridColumnVisibilityLoader, GroupFilterLoader, HorizontalMenuLoader, HtmlLoader, InputLoader, IntegerFieldLoader, KanbanLoader, ListBoxLoader, ListMenuLoader, MenuFilterFieldLoader, MultiSelectListBoxLoader, NotificationsIndicatorLoader, NumberFieldLoader, PasswordFieldLoader, PivotTableLoader, ProgressBarLoader, RadioButtonGroupLoader, RangeInputLoader, RichTextEditorLoader, SearchFieldLoader, SelectLoader, SimplePaginationLoader, SupersetDashboardLoader, TextAreaLoader, TextFieldLoader, TimePickerLoader, TwinColumnLoader, UploadLoader, UserIndicatorLoader, VirtualListLoader, WebdavDocumentLinkLoader

public abstract class AbstractComponentLoader<T extends com.vaadin.flow.component.Component> extends Object implements ComponentLoader<T>
  • Field Details

    • context

      protected ComponentLoader.Context context
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • environment

      protected org.springframework.core.env.Environment environment
    • factory

      protected UiComponents factory
    • loaderResolver

      protected LoaderResolver loaderResolver
    • loaderSupport

      protected LoaderSupport loaderSupport
    • componentLoaderSupport

      protected ComponentLoaderSupport componentLoaderSupport
    • element

      protected org.dom4j.Element element
    • resultComponent

      protected T extends com.vaadin.flow.component.Component resultComponent
  • Constructor Details

    • AbstractComponentLoader

      protected AbstractComponentLoader()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • getContext

      public ComponentLoader.Context getContext()
      Specified by:
      getContext in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • setContext

      public void setContext(ComponentLoader.Context context)
      Specified by:
      setContext in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • getComponentContext

      protected ComponentLoader.ComponentContext getComponentContext()
    • createComponent

      protected abstract T createComponent()
    • initComponent

      public void initComponent()
      Description copied from interface: ComponentLoader
      Creates result component by XML-element
      Specified by:
      initComponent in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • getFactory

      public UiComponents getFactory()
      Specified by:
      getFactory in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • setFactory

      public void setFactory(UiComponents factory)
      Specified by:
      setFactory in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • setElement

      public void setElement(org.dom4j.Element element)
      Specified by:
      setElement in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • getElement

      public org.dom4j.Element getElement(org.dom4j.Element element)
      Specified by:
      getElement in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • getResultComponent

      public T getResultComponent()
      Description copied from interface: ComponentLoader
      Returns previously created instance of component.
      Specified by:
      getResultComponent in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
      See Also:
    • getLoaderResolver

      public LoaderResolver getLoaderResolver()
      Specified by:
      getLoaderResolver in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • setLoaderResolver

      public void setLoaderResolver(LoaderResolver loaderResolver)
      Specified by:
      setLoaderResolver in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • getLoaderSupport

      public LoaderSupport getLoaderSupport()
      Specified by:
      getLoaderSupport in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • setLoaderSupport

      public void setLoaderSupport(LoaderSupport loaderSupport)
      Specified by:
      setLoaderSupport in interface ComponentLoader<T extends com.vaadin.flow.component.Component>
    • componentLoader

      protected ComponentLoaderSupport componentLoader()
    • getLayoutLoader

      protected LayoutLoader getLayoutLoader()
    • loadId

      protected void loadId(com.vaadin.flow.component.Component component, org.dom4j.Element element)
    • loadVisible

      protected void loadVisible(com.vaadin.flow.component.Component component, org.dom4j.Element element)
    • loadBoolean

      protected Optional<Boolean> loadBoolean(org.dom4j.Element element, String attributeName)
    • loadResourceString

      protected Optional<String> loadResourceString(org.dom4j.Element element, String attributeName, String messageGroup)
    • loadResourceString

      protected Optional<String> loadResourceString(org.dom4j.Element element, String attributeName, String messageGroup, boolean emptyToNull)
    • loadString

      protected Optional<String> loadString(org.dom4j.Element element, String attributeName)
    • loadString

      protected Optional<String> loadString(org.dom4j.Element element, String attributeName, boolean emptyToNull)
    • loadInteger

      protected Optional<Integer> loadInteger(org.dom4j.Element element, String attributeName)
    • loadDouble

      protected Optional<Double> loadDouble(org.dom4j.Element element, String attributeName)
    • loadEnum

      protected <E extends Enum<E>> Optional<E> loadEnum(org.dom4j.Element element, Class<E> type, String attributeName)
    • loadBoolean

      protected void loadBoolean(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter)
    • loadResourceString

      protected void loadResourceString(org.dom4j.Element element, String attributeName, String messageGroup, Consumer<String> setter)
    • loadString

      protected void loadString(org.dom4j.Element element, String attributeName, Consumer<String> setter)
    • loadInteger

      protected void loadInteger(org.dom4j.Element element, String attributeName, Consumer<Integer> setter)
    • loadDouble

      protected void loadDouble(org.dom4j.Element element, String attributeName, Consumer<Double> setter)
    • loadEnum

      protected <E extends Enum<E>> void loadEnum(org.dom4j.Element element, Class<E> type, String attributeName, Consumer<E> setter)