Package io.jmix.flowui.component
Interface HasFacets
- All Known Subinterfaces:
FragmentFacets,ViewFacets
- All Known Implementing Classes:
AbstractFacetHolder,FragmentFacetsImpl,ViewFacetsImpl
public interface HasFacets
Interface defining methods for managing facet API elements.
-
Method Summary
-
Method Details
-
addFacet
Adds a facet to a view.- Parameters:
facet- the facet to be added
-
getFacet
Returns a facet by its ID.- Parameters:
id- the identifier of the facet to retrieve- Returns:
- the facet corresponding to the given identifier,
or
nullif no facet is associated with the identifier
-
removeFacet
Removes the specified facet from the view.- Parameters:
facet- the facet to be removed
-
getFacets
Returns a stream of all facets associated with the view.- Returns:
- a stream of
Facetinstances associated with the view
-