Class FragmentsImpl

java.lang.Object
io.jmix.ui.sys.FragmentsImpl
All Implemented Interfaces:
Fragments

@UIScope @Component("ui_Fragments") @ParametersAreNonnullByDefault public class FragmentsImpl extends Object implements Fragments
  • Field Details

    • screenXmlLoader

      @Autowired protected ScreenXmlLoader screenXmlLoader
    • windowConfig

      @Autowired protected WindowConfig windowConfig
    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
    • uiComponents

      @Autowired protected UiComponents uiComponents
    • meterRegistry

      @Autowired protected io.micrometer.core.instrument.MeterRegistry meterRegistry
    • fragmentHelper

      @Autowired protected FragmentHelper fragmentHelper
    • ui

      protected AppUI ui
  • Constructor Details

    • FragmentsImpl

      public FragmentsImpl()
  • Method Details

    • setAppUi

      @Autowired public void setAppUi(AppUI ui)
    • create

      public <T extends ScreenFragment> T create(FrameOwner parent, Class<T> requiredFragmentClass, ScreenOptions options)
      Description copied from interface: Fragments
      Creates a screen fragment by its controller class.
      Specified by:
      create in interface Fragments
      Parameters:
      parent - parent UI controller
      requiredFragmentClass - screen controller class
      options - screen parameters
    • create

      public ScreenFragment create(FrameOwner parent, String screenFragmentId, ScreenOptions options)
      Description copied from interface: Fragments
      Creates a screen fragment by its id.
      Specified by:
      create in interface Fragments
      Parameters:
      parent - parent UI controller
      screenFragmentId - id of screen fragment
      options - screen parameters
    • getFragmentInfo

      protected <T extends ScreenFragment> WindowInfo getFragmentInfo(Class<T> fragmentClass)
    • createFragment

      protected <T extends ScreenFragment> T createFragment(FrameOwner parent, WindowInfo windowInfo, ScreenOptions options)
    • loadAdditionalData

      protected void loadAdditionalData(org.dom4j.Element rootElement, ComponentLoaderContext innerContext)
    • createFragmentInternal

      protected Fragment createFragmentInternal()
    • init

      public void init(ScreenFragment controller)
      Description copied from interface: Fragments
      Perform fragment initialization. Clients must always perform init.
      Specified by:
      init in interface Fragments
      Parameters:
      controller - fragment
    • createComponentLoaderContext

      protected ComponentLoaderContext createComponentLoaderContext(ScreenOptions options)