Interface Facet

All Known Subinterfaces:
DataLoadCoordinator, DynAttrFacet, FragmentDataLoadCoordinator, FragmentSettingsFacet, SettingsFacet<S>, Timer, UrlQueryParametersFacet, ViewDataLoadCoordinator, ViewSettingsFacet
All Known Implementing Classes:
AbstractDataLoadCoordinator, AbstractFacet, AbstractSettingsFacet, DynAttrFacetImpl, FragmentDataLoadCoordinatorImpl, FragmentSettingsFacetImpl, NoopUrlQueryParametersFacetImpl, TimerImpl, UrlQueryParametersFacetImpl, ViewDataLoadCoordinatorImpl, ViewSettingsFacetImpl

public interface Facet
Non-visual component of a FacetOwner.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the identifier associated with this oject.
    <T extends com.vaadin.flow.component.Composite<?> & FacetOwner>
    T
     
    void
    Sets the identifier for this object.
    <T extends com.vaadin.flow.component.Composite<?> & FacetOwner>
    void
    setOwner(T owner)
    Sets an owner containing this facet.
  • Method Details

    • getId

      @Nullable String getId()
      Returns the identifier associated with this oject.
      Returns:
      the ID if it exists, null otherwise.
    • setId

      void setId(@Nullable String id)
      Sets the identifier for this object.
      Parameters:
      id - the unique identifier to be set
    • getOwner

      @Nullable <T extends com.vaadin.flow.component.Composite<?> & FacetOwner> T getOwner()
      Type Parameters:
      T - the type of the owner
      Returns:
      an owner containing this facet
    • setOwner

      <T extends com.vaadin.flow.component.Composite<?> & FacetOwner> void setOwner(@Nullable T owner)
      Sets an owner containing this facet.
      Type Parameters:
      T - the type of the owner
      Parameters:
      owner - an owner containing this facet