Package io.jmix.flowui.impl
Class FragmentsImpl
java.lang.Object
io.jmix.flowui.impl.FragmentsImpl
- All Implemented Interfaces:
Fragments
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.springframework.context.ApplicationContext
protected final AutowireManager
protected final FragmentDescriptorLoader
protected final UiComponents
protected final ViewRegistry
-
Constructor Summary
ConstructorDescriptionFragmentsImpl
(org.springframework.context.ApplicationContext applicationContext, FragmentDescriptorLoader fragmentDescriptorLoader, UiComponents uiComponents, ViewRegistry viewRegistry, AutowireManager autowireManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
autowireFragment
(Fragment<?> fragment) <F extends Fragment<?>>
Fcreate
(FragmentOwner parent, Class<F> fragmentClass) Creates a fragment instance by its controller class.protected FragmentLoaderContext
createHostFragmentLoaderContext
(Fragment<?> fragment) protected ComponentLoader.Context
createHostLoaderContext
(FragmentOwner parent) protected ComponentLoaderContext
createHostViewLoaderContext
(View<?> view) protected ComponentLoader.Context
findHostLoaderContext
(ComponentLoader.Context hostContext) protected String
getFullOriginId
(ComponentLoader.Context hostContext, Fragment<?> fragment) void
init
(ComponentLoader.Context hostContext, Fragment<?> fragment) Initializes passed fragment by processingFragmentDescriptor
.protected void
postInit
(Fragment<?> fragment, FragmentLoaderContext context) protected void
processFragmentDescriptor
(FragmentLoaderContext context, String descriptorPath)
-
Field Details
-
applicationContext
protected final org.springframework.context.ApplicationContext applicationContext -
fragmentDescriptorLoader
-
uiComponents
-
viewRegistry
-
autowireManager
-
-
Constructor Details
-
FragmentsImpl
public FragmentsImpl(org.springframework.context.ApplicationContext applicationContext, FragmentDescriptorLoader fragmentDescriptorLoader, UiComponents uiComponents, ViewRegistry viewRegistry, AutowireManager autowireManager)
-
-
Method Details
-
create
Description copied from interface:Fragments
Creates a fragment instance by its controller class.For example:
AddressFragment addressFragment = fragments.create(this, AddressFragment.class); getContent().add(addressFragment);
-
init
Description copied from interface:Fragments
Initializes passed fragment by processingFragmentDescriptor
. -
getFullOriginId
-
postInit
-
autowireFragment
-
findHostLoaderContext
@Nullable protected ComponentLoader.Context findHostLoaderContext(ComponentLoader.Context hostContext) -
processFragmentDescriptor
-
createHostLoaderContext
-
createHostViewLoaderContext
-
createHostFragmentLoaderContext
-