Class AbstractFacetHolder

java.lang.Object
io.jmix.flowui.facet.impl.AbstractFacetHolder
All Implemented Interfaces:
HasFacets
Direct Known Subclasses:
FragmentFacetsImpl, ViewFacetsImpl

public abstract class AbstractFacetHolder extends Object implements HasFacets
Abstract implementation of HasFacets.
  • Field Details

  • Constructor Details

    • AbstractFacetHolder

      public AbstractFacetHolder()
  • Method Details

    • addFacet

      public void addFacet(Facet facet)
      Description copied from interface: HasFacets
      Adds a facet to a view.
      Specified by:
      addFacet in interface HasFacets
      Parameters:
      facet - the facet to be added
    • getFacet

      @Nullable public Facet getFacet(String id)
      Description copied from interface: HasFacets
      Returns a facet by its ID.
      Specified by:
      getFacet in interface HasFacets
      Parameters:
      id - the identifier of the facet to retrieve
      Returns:
      the facet corresponding to the given identifier, or null if no facet is associated with the identifier
    • removeFacet

      public void removeFacet(Facet facet)
      Description copied from interface: HasFacets
      Removes the specified facet from the view.
      Specified by:
      removeFacet in interface HasFacets
      Parameters:
      facet - the facet to be removed
    • getFacets

      public Stream<Facet> getFacets()
      Description copied from interface: HasFacets
      Returns a stream of all facets associated with the view.
      Specified by:
      getFacets in interface HasFacets
      Returns:
      a stream of Facet instances associated with the view
    • getOwner

      protected abstract <T extends com.vaadin.flow.component.Composite<?> & FacetOwner> T getOwner()