Package io.jmix.flowui.xml.layout
Interface ComponentLoader<T extends com.vaadin.flow.component.Component>
- Type Parameters:
T- the type of component being loaded
- All Known Subinterfaces:
ComponentRootLoader<T>
- All Known Implementing Classes:
AbstractComboBoxLoader,AbstractComponentLoader,AbstractContainerLoader,AbstractDetailsLoader,AbstractDropdownButtonLoader,AbstractGridLoader,AbstractGroupGridLoader,AbstractHtmlComponentLoader,AbstractHtmlContainerLoader,AbstractIconLoader,AbstractLayoutLoader,AbstractLoginFormLoader,AbstractMultiSelectComboBoxLoader,AbstractSingleFilterComponentLoader,AbstractTabLoader,AbstractTabsLoader,AbstractUploadFieldLoader,AbstractValuePickerLoader,AbstractViewLoader,AccordionLoader,AccordionPanelLoader,AnchorLoader,ArticleLoader,AsideLoader,AvatarLoader,BigDecimalFieldLoader,BoardLoader,ButtonLoader,CardLoader,ChartLoader,CheckboxGroupLoader,CheckboxLoader,CodeEditorLoader,CodeLoader,ComboBoxLoader,ComboBoxPickerLoader,ComboButtonLoader,DataGridLoader,DatePickerLoader,DateTimePickerLoader,DescriptionListLoader,DescriptionListLoader.DescriptionLoader,DescriptionListLoader.TermLoader,DetailsLoader,DivLoader,DrawerToggleLoader,DropdownButtonLoader,DynamicAttributesPanelLoader,EmailFieldLoader,EmphasisLoader,EntityComboBoxLoader,EntityPickerLoader,FieldSetLoader,FileStorageUploadFieldLoader,FileUploadFieldLoader,FlexLayoutLoader,FontIconLoader,FooterLoader,FormLayoutLoader,FormLayoutLoader.FormItemLoader,FormLayoutLoader.FormRowLoader,FragmentElementLoader,FullCalendarLoader,FullTextFilterLoader,GenericComponentLoader,GenericFilterLoader,GeoMapLoader,GrapesJsLoader,GridColumnVisibilityLoader,GridLayoutLoader,GroupDataGridLoader,GroupFilterLoader,H1Loader,H2Loader,H3Loader,H4Loader,H5Loader,H6Loader,HeaderLoader,HorizontalLayoutLoader,HorizontalMenuLoader,HrLoader,HtmlLoader,HtmlObjectLoader,IconLoader,IFrameLoader,ImageLoader,InputLoader,IntegerFieldLoader,JpqlFilterLoader,KanbanLoader,LabelLoader,ListBoxLoader,ListItemLoader,ListMenuLoader,LoginFormLoader,LoginOverlayLoader,MainLoader,MainTabSheetLoader,MainViewLoader,MarkdownLoader,MenuFilterFieldLoader,MultiSelectComboBoxLoader,MultiSelectComboBoxPickerLoader,MultiSelectListBoxLoader,MultiValuePickerLoader,NativeButtonLoader,NativeDetailsLoader,NativeLabelLoader,NavLoader,NotificationsIndicatorLoader,NumberFieldLoader,OrderedListLoader,ParagraphLoader,ParamLoader,PasswordFieldLoader,PivotTableLoader,PreLoader,ProgressBarLoader,PropertyFilterLoader,RadioButtonGroupLoader,RangeInputLoader,RichTextEditorLoader,RowLoader,ScrollerLoader,SearchFieldLoader,SectionLoader,SelectLoader,SimplePaginationLoader,SpanLoader,SplitLayoutLoader,SpreadsheetLoader,SupersetDashboardLoader,SvgIconLoader,SwitchLoader,TabbedModeMainViewLoader,TabSheetLoader,TabSheetLoader.LazyTabLoader,TabSheetLoader.TabLoader,TabsLoader,TabsLoader.TabLoader,TextAreaLoader,TextFieldLoader,TimePickerLoader,TreeDataGridLoader,TwinColumnLoader,UnorderedListLoader,UploadLoader,UserIndicatorLoader,UserMenuLoader,ValuePickerLoader,VerticalLayoutLoader,ViewLoader,VirtualListLoader,WebdavDocumentLinkLoader,WebdavDocumentUploadFieldLoader,WebdavDocumentVersionLinkLoader,WorkAreaLoader
public interface ComponentLoader<T extends com.vaadin.flow.component.Component>
Defines the contract for loading and initializing UI components from XML descriptors.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAutowireTasks are used to perform autowiring of nested fragments in a view.static interfaceRepresents a context for loading and initializing UI components inView.static interfaceRepresents a context for loading and initializing UI components.static interfaceRepresents a context for loading and initializing UI components inFragment.static interfaceInitTasks are used to perform deferred initialization of visual components. -
Method Summary
Modifier and TypeMethodDescriptionReturns the context associated with the current component loading and initialization process.org.dom4j.Elementorg.dom4j.ElementgetElement(org.dom4j.Element element) Deprecated, for removal: This API element is subject to removal in a future version.Returns the factory for creating UI components.Returns 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-elementvoidLoads component properties by XML definition.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) Deprecated, for removal: This API element is subject to removal in a future version.unusedvoidsetFactory(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.
-
Method Details
-
getContext
ComponentLoader.Context getContext()Returns the context associated with the current component loading and initialization process.- Returns:
- the
ComponentLoader.Contextinstance
-
setContext
Sets the context for loading and initializing UI components.- Parameters:
context- theComponentLoader.Contextinstance to set
-
getFactory
UiComponents getFactory()Returns the factory for creating UI components.- Returns:
- the
UiComponentsinstance
-
setFactory
Sets the factory used for creating UI components.- Parameters:
factory- theUiComponentsinstance to set
-
getLoaderResolver
LoaderResolver getLoaderResolver()Returns theLoaderResolverinstance used to resolve component and view loaders during the XML-based component initialization process.- Returns:
- the
LoaderResolverinstance
-
setLoaderResolver
Sets theLoaderResolverinstance used to resolve component and view loaders during the XML-based component initialization process.- Parameters:
loaderResolver- theLoaderResolverinstance to set
-
getLoaderSupport
LoaderSupport getLoaderSupport()Returns theLoaderSupportinstance used to provide support functionalities for loading and initializing components.- Returns:
- the
LoaderSupportinstance
-
setLoaderSupport
Sets theLoaderSupportinstance used to provide supporting functionalities for loading and initializing components.- Parameters:
loaderSupport- theLoaderSupportinstance to set
-
getElement
Deprecated, for removal: This API element is subject to removal in a future version. -
setElement
void setElement(org.dom4j.Element element) Sets the specified XML element to be associated with the component loader.- Parameters:
element- theElementinstance representing the XML configuration for a UI component
-
getElement
org.dom4j.Element getElement()- Returns:
- XML element associated with the component loader
-
setApplicationContext
void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) Sets the application context for the current component loader.- Parameters:
applicationContext- theApplicationContextinstance to set
-
setEnvironment
@Deprecated(since="2.5", forRemoval=true) void setEnvironment(org.springframework.core.env.Environment environment) Deprecated, for removal: This API element is subject to removal in a future version.unused -
initComponent
void initComponent()Creates result component by XML-element -
loadComponent
void loadComponent()Loads component properties by XML definition.- See Also:
-
getResultComponent
T getResultComponent()Returns previously created instance of component.- See Also:
-