Class AbstractFacetLoader<F extends Facet>

java.lang.Object
io.jmix.flowui.xml.facet.loader.AbstractFacetLoader<F>
Type Parameters:
F - the type of facet being loaded
All Implemented Interfaces:
FacetLoader<F>
Direct Known Subclasses:
AbstractDataLoadCoordinatorFacetLoader, AbstractSettingsFacetLoader, DynAttrFacetLoader, TimerFacetLoader, UrlQueryParametersFacetLoader

public abstract class AbstractFacetLoader<F extends Facet> extends Object implements FacetLoader<F>
Abstract class for FacetLoader implementations.
  • Field Details

    • context

      protected ComponentLoader.Context context
    • facets

      protected Facets facets
    • loaderSupport

      protected LoaderSupport loaderSupport
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • resultFacet

      protected F extends Facet resultFacet
    • element

      protected org.dom4j.Element element
  • Constructor Details

    • AbstractFacetLoader

      public AbstractFacetLoader()
  • Method Details

    • createFacet

      protected abstract F createFacet()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Description copied from interface: FacetLoader
      Sets the application context for the current component loader.
      Specified by:
      setApplicationContext in interface FacetLoader<F extends Facet>
      Parameters:
      applicationContext - the ApplicationContext instance to set
    • getElement

      public org.dom4j.Element getElement()
      Specified by:
      getElement in interface FacetLoader<F extends Facet>
      Returns:
      XML element associated with the facet loader
    • setElement

      public void setElement(org.dom4j.Element element)
      Description copied from interface: FacetLoader
      Sets the specified XML element to be associated with the facet loader.
      Specified by:
      setElement in interface FacetLoader<F extends Facet>
      Parameters:
      element - the Element instance representing the XML configuration for a facet component
    • getContext

      public ComponentLoader.Context getContext()
      Description copied from interface: FacetLoader
      Returns the context associated with the current facet loading and initialization process.
      Specified by:
      getContext in interface FacetLoader<F extends Facet>
      Returns:
      the ComponentLoader.Context instance
    • setContext

      public void setContext(ComponentLoader.Context context)
      Description copied from interface: FacetLoader
      Sets the context for loading and initializing facet components.
      Specified by:
      setContext in interface FacetLoader<F extends Facet>
      Parameters:
      context - the ComponentLoader.Context instance to set
    • initFacet

      public void initFacet()
      Description copied from interface: FacetLoader
      Creates result facet by XML-element.
      Specified by:
      initFacet in interface FacetLoader<F extends Facet>
    • getResultFacet

      public F getResultFacet()
      Specified by:
      getResultFacet in interface FacetLoader<F extends Facet>
      Returns:
      result facet