Package io.jmix.flowui.xml.layout.loader
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
,AbstractLoginFormLoader
,AbstractSingleFilterComponentLoader
,AbstractUploadFieldLoader
,AbstractValuePickerLoader
,AvatarLoader
,BigDecimalFieldLoader
,ButtonLoader
,CheckboxGroupLoader
,CheckboxLoader
,DatePickerLoader
,DateTimePickerLoader
,DrawerToggleLoader
,EmailFieldLoader
,FormLayoutLoader
,GenericFilterLoader
,IconLoader
,InputLoader
,IntegerFieldLoader
,ListBoxLoader
,ListMenuLoader
,MultiSelectComboBoxLoader
,MultiSelectListBoxLoader
,NumberFieldLoader
,PasswordFieldLoader
,ProgressBarLoader
,RadioButtonGroupLoader
,SelectLoader
,SimplePaginationLoader
,TextAreaLoader
,TextFieldLoader
,TimePickerLoader
,UploadLoader
,UserIndicatorLoader
public abstract class AbstractComponentLoader<T extends com.vaadin.flow.component.Component>
extends Object
implements ComponentLoader<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.xml.layout.ComponentLoader
ComponentLoader.ComponentContext, ComponentLoader.Context, ComponentLoader.InitTask
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected ComponentLoaderSupport
protected ComponentLoader.Context
protected org.dom4j.Element
protected org.springframework.core.env.Environment
protected UiComponents
protected LoaderResolver
protected LoaderSupport
protected T
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentLoaderSupport
protected abstract T
protected ComponentLoader.ComponentContext
org.dom4j.Element
getElement
(org.dom4j.Element element) protected LayoutLoader
Returns previously created instance of component.void
Creates result component by XML-elementloadBoolean
(org.dom4j.Element element, String attributeName) protected void
loadBoolean
(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) loadDouble
(org.dom4j.Element element, String attributeName) protected void
loadDouble
(org.dom4j.Element element, String attributeName, Consumer<Double> setter) protected <E extends Enum<E>>
voidprotected void
loadId
(com.vaadin.flow.component.Component component, org.dom4j.Element element) loadInteger
(org.dom4j.Element element, String attributeName) protected void
loadInteger
(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) loadResourceString
(org.dom4j.Element element, String attributeName, String messageGroup) protected void
loadResourceString
(org.dom4j.Element element, String attributeName, String messageGroup, Consumer<String> setter) loadString
(org.dom4j.Element element, String attributeName) protected void
loadString
(org.dom4j.Element element, String attributeName, Consumer<String> setter) protected void
loadVisible
(com.vaadin.flow.component.Component component, org.dom4j.Element element) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setContext
(ComponentLoader.Context context) void
setElement
(org.dom4j.Element element) void
setEnvironment
(org.springframework.core.env.Environment environment) void
setFactory
(UiComponents factory) void
setLoaderResolver
(LoaderResolver loaderResolver) void
setLoaderSupport
(LoaderSupport loaderSupport) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.xml.layout.ComponentLoader
loadComponent
-
Field Details
-
context
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
environment
protected org.springframework.core.env.Environment environment -
factory
-
loaderResolver
-
loaderSupport
-
componentLoaderSupport
-
element
protected org.dom4j.Element element -
resultComponent
-
-
Constructor Details
-
AbstractComponentLoader
protected AbstractComponentLoader()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getContext
- Specified by:
getContext
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
setContext
- Specified by:
setContext
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getComponentContext
-
createComponent
-
initComponent
public void initComponent()Description copied from interface:ComponentLoader
Creates result component by XML-element- Specified by:
initComponent
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getFactory
- Specified by:
getFactory
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
setFactory
- Specified by:
setFactory
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
setElement
public void setElement(org.dom4j.Element element) - Specified by:
setElement
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getElement
public org.dom4j.Element getElement(org.dom4j.Element element) - Specified by:
getElement
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getResultComponent
Description copied from interface:ComponentLoader
Returns previously created instance of component.- Specified by:
getResultComponent
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
- See Also:
-
getLoaderResolver
- Specified by:
getLoaderResolver
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
setLoaderResolver
- Specified by:
setLoaderResolver
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getLoaderSupport
- Specified by:
getLoaderSupport
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
setLoaderSupport
- Specified by:
setLoaderSupport
in interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
componentLoader
-
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
-
loadResourceString
-
loadString
-
loadInteger
-
loadDouble
-
loadEnum
-
loadBoolean
-
loadResourceString
-
loadString
-
loadInteger
-
loadDouble
-
loadEnum
-