Class ViewFacetsImpl

java.lang.Object
io.jmix.flowui.view.impl.ViewFacetsImpl
All Implemented Interfaces:
ViewFacets

@Component("flowui_ViewFacets") @Scope("prototype") public class ViewFacetsImpl extends Object implements ViewFacets
Implementation of the ViewFacets interface. This class manages a collection of facets associated with a specific View.
  • Field Details

    • view

      protected final View<?> view
    • facets

      protected Set<Facet> facets
  • Constructor Details

    • ViewFacetsImpl

      public ViewFacetsImpl(View<?> view)
  • Method Details

    • addFacet

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

      @Nullable public Facet getFacet(String id)
      Description copied from interface: ViewFacets
      Returns a facet by its ID.
      Specified by:
      getFacet in interface ViewFacets
      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: ViewFacets
      Removes the specified facet from the view.
      Specified by:
      removeFacet in interface ViewFacets
      Parameters:
      facet - the facet to be removed
    • getFacets

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