Class AbstractFacet

java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
All Implemented Interfaces:
Facet
Direct Known Subclasses:
AbstractScreenFacet, ClipboardTriggerImpl, DataLoadCoordinatorImpl, DynAttrFacetImpl, InputDialogFacetImpl, MessageDialogFacetImpl, NotificationFacetImpl, OptionDialogFacetImpl, PresentationsFacetImpl, ScreenSettingsFacetImpl, TimerImpl

public class AbstractFacet extends Object implements Facet
  • Field Details

    • id

      protected String id
    • owner

      protected Frame owner
  • Constructor Details

    • AbstractFacet

      public AbstractFacet()
  • Method Details

    • getEventHub

      protected EventHub getEventHub()
    • publish

      protected <E> void publish(Class<E> eventType, E event)
    • hasSubscriptions

      protected boolean hasSubscriptions(Class<?> eventClass)
    • unsubscribe

      protected <E> boolean unsubscribe(Class<E> eventType, Consumer<E> listener)
    • getId

      @Nullable public String getId()
      Specified by:
      getId in interface Facet
      Returns:
      ID as defined in id attribute
    • setId

      public void setId(@Nullable String id)
      Description copied from interface: Facet
      Sets facet ID.
      Specified by:
      setId in interface Facet
      Parameters:
      id - id
    • setOwner

      public void setOwner(@Nullable Frame owner)
      Description copied from interface: Facet
      Sets owner frame (Window or Fragment) to the facet.
      Specified by:
      setOwner in interface Facet
      Parameters:
      owner - owner frame
    • getOwner

      @Nullable public Frame getOwner()
      Specified by:
      getOwner in interface Facet
      Returns:
      owner frame