Class AbstractFacet

java.lang.Object
io.jmix.flowui.facet.impl.AbstractFacet
All Implemented Interfaces:
Facet
Direct Known Subclasses:
AbstractDataLoadCoordinator, AbstractSettingsFacet, DynAttrFacetImpl, NoopUrlQueryParametersFacetImpl, TimerImpl, UrlQueryParametersFacetImpl

public abstract class AbstractFacet extends Object implements Facet
An abstract implementation of the Facet interface, providing base functionality for non-visual components associated with views.
  • Field Details

    • id

      protected String id
    • owner

      protected com.vaadin.flow.component.Composite<?> owner
  • Constructor Details

    • AbstractFacet

      public AbstractFacet()
  • Method Details

    • getId

      @Nullable public String getId()
      Description copied from interface: Facet
      Returns the identifier associated with this oject.
      Specified by:
      getId in interface Facet
      Returns:
      the ID if it exists, null otherwise.
    • setId

      public void setId(@Nullable String id)
      Description copied from interface: Facet
      Sets the identifier for this object.
      Specified by:
      setId in interface Facet
      Parameters:
      id - the unique identifier to be set
    • getOwner

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

      public <T extends com.vaadin.flow.component.Composite<?> & FacetOwner> void setOwner(@Nullable T owner)
      Description copied from interface: Facet
      Sets an owner containing this facet.
      Specified by:
      setOwner in interface Facet
      Type Parameters:
      T - the type of the owner
      Parameters:
      owner - an owner containing this facet