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,AbstractGroupGridLoader,AbstractHtmlComponentLoader,AbstractIconLoader,AbstractLoginFormLoader,AbstractMultiSelectComboBoxLoader,AbstractSingleFilterComponentLoader,AbstractUploadFieldLoader,AbstractValuePickerLoader,AvatarLoader,BigDecimalFieldLoader,ButtonLoader,CardLoader,ChartLoader,CheckboxGroupLoader,CheckboxLoader,CodeEditorLoader,DatePickerLoader,DateTimePickerLoader,DrawerToggleLoader,DynamicAttributesPanelLoader,EmailFieldLoader,FormLayoutLoader,FormLayoutLoader.FormItemLoader,FormLayoutLoader.FormRowLoader,FragmentElementLoader,FullCalendarLoader,GenericComponentLoader,GenericFilterLoader,GeoMapLoader,GrapesJsLoader,GridColumnVisibilityLoader,GroupFilterLoader,HorizontalMenuLoader,HtmlLoader,InputLoader,IntegerFieldLoader,KanbanLoader,ListBoxLoader,ListMenuLoader,MainTabSheetLoader,MarkdownLoader,MenuFilterFieldLoader,MultiSelectListBoxLoader,NotificationsIndicatorLoader,NumberFieldLoader,PasswordFieldLoader,PivotTableLoader,ProgressBarLoader,RadioButtonGroupLoader,RangeInputLoader,RichTextEditorLoader,SearchFieldLoader,SelectLoader,SimplePaginationLoader,SpreadsheetLoader,SupersetDashboardLoader,SwitchLoader,TextAreaLoader,TextFieldLoader,TimePickerLoader,TwinColumnLoader,UploadLoader,UserIndicatorLoader,UserMenuLoader,VirtualListLoader,WebdavDocumentLinkLoader,WorkAreaLoader
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.AutowireTask, ComponentLoader.ComponentContext, ComponentLoader.Context, ComponentLoader.FragmentContext, ComponentLoader.InitTask -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ComponentLoaderSupportprotected ComponentLoader.Contextprotected org.dom4j.Elementprotected org.springframework.core.env.Environmentprotected UiComponentsprotected LoaderResolverprotected LoaderSupportprotected T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentLoaderSupportprotected abstract Tprotected ComponentLoader.ComponentContextReturns the context associated with the current component loading and initialization process.org.dom4j.Elementorg.dom4j.ElementgetElement(org.dom4j.Element element) Returns the factory for creating UI components.protected LayoutLoaderReturns theLoaderResolverinstance used to resolve component and view loaders during the XML-based component initialization process.Returns theLoaderSupportinstance used to provide support functionalities for loading and initializing components.Returns previously created instance of component.voidCreates result component by XML-elementloadBoolean(org.dom4j.Element element, String attributeName) protected voidloadBoolean(org.dom4j.Element element, String attributeName, Consumer<Boolean> setter) loadDouble(org.dom4j.Element element, String attributeName) protected voidloadDouble(org.dom4j.Element element, String attributeName, Consumer<Double> setter) protected <E extends Enum<E>>
voidprotected voidloadId(com.vaadin.flow.component.Component component, org.dom4j.Element element) loadInteger(org.dom4j.Element element, String attributeName) protected voidloadInteger(org.dom4j.Element element, String attributeName, Consumer<Integer> setter) loadResourceString(org.dom4j.Element element, String attributeName, String messageGroup) loadResourceString(org.dom4j.Element element, String attributeName, String messageGroup, boolean emptyToNull) protected voidloadResourceString(org.dom4j.Element element, String attributeName, String messageGroup, Consumer<String> setter) loadString(org.dom4j.Element element, String attributeName) loadString(org.dom4j.Element element, String attributeName, boolean emptyToNull) protected voidloadString(org.dom4j.Element element, String attributeName, Consumer<String> setter) protected voidloadVisible(com.vaadin.flow.component.Component component, org.dom4j.Element element) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Sets the application context for the current component loader.voidsetContext(ComponentLoader.Context context) Sets the context for loading and initializing UI components.voidsetElement(org.dom4j.Element element) Sets the specified XML element to be associated with the component loader.voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetFactory(UiComponents factory) Sets the factory used for creating UI components.voidsetLoaderResolver(LoaderResolver loaderResolver) Sets theLoaderResolverinstance used to resolve component and view loaders during the XML-based component initialization process.voidsetLoaderSupport(LoaderSupport loaderSupport) Sets theLoaderSupportinstance used to provide supporting functionalities for loading and initializing components.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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) Description copied from interface:ComponentLoaderSets the application context for the current component loader.- Specified by:
setApplicationContextin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Parameters:
applicationContext- theApplicationContextinstance to set
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getContext
Description copied from interface:ComponentLoaderReturns the context associated with the current component loading and initialization process.- Specified by:
getContextin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Returns:
- the
ComponentLoader.Contextinstance
-
setContext
Description copied from interface:ComponentLoaderSets the context for loading and initializing UI components.- Specified by:
setContextin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Parameters:
context- theComponentLoader.Contextinstance to set
-
getComponentContext
-
createComponent
-
initComponent
public void initComponent()Description copied from interface:ComponentLoaderCreates result component by XML-element- Specified by:
initComponentin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getFactory
Description copied from interface:ComponentLoaderReturns the factory for creating UI components.- Specified by:
getFactoryin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Returns:
- the
UiComponentsinstance
-
setFactory
Description copied from interface:ComponentLoaderSets the factory used for creating UI components.- Specified by:
setFactoryin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Parameters:
factory- theUiComponentsinstance to set
-
getElement
public org.dom4j.Element getElement()- Specified by:
getElementin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Returns:
- XML element associated with the component loader
-
setElement
public void setElement(org.dom4j.Element element) Description copied from interface:ComponentLoaderSets the specified XML element to be associated with the component loader.- Specified by:
setElementin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Parameters:
element- theElementinstance representing the XML configuration for a UI component
-
getElement
public org.dom4j.Element getElement(org.dom4j.Element element) - Specified by:
getElementin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>
-
getResultComponent
Description copied from interface:ComponentLoaderReturns previously created instance of component.- Specified by:
getResultComponentin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- See Also:
-
getLoaderResolver
Description copied from interface:ComponentLoaderReturns theLoaderResolverinstance used to resolve component and view loaders during the XML-based component initialization process.- Specified by:
getLoaderResolverin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Returns:
- the
LoaderResolverinstance
-
setLoaderResolver
Description copied from interface:ComponentLoaderSets theLoaderResolverinstance used to resolve component and view loaders during the XML-based component initialization process.- Specified by:
setLoaderResolverin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Parameters:
loaderResolver- theLoaderResolverinstance to set
-
getLoaderSupport
Description copied from interface:ComponentLoaderReturns theLoaderSupportinstance used to provide support functionalities for loading and initializing components.- Specified by:
getLoaderSupportin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Returns:
- the
LoaderSupportinstance
-
setLoaderSupport
Description copied from interface:ComponentLoaderSets theLoaderSupportinstance used to provide supporting functionalities for loading and initializing components.- Specified by:
setLoaderSupportin interfaceComponentLoader<T extends com.vaadin.flow.component.Component>- Parameters:
loaderSupport- theLoaderSupportinstance to set
-
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
-
loadResourceString
-
loadString
-
loadString
-
loadInteger
-
loadDouble
-
loadEnum
-
loadBoolean
-
loadResourceString
-
loadString
-
loadInteger
-
loadDouble
-
loadEnum
-