Class JmixNotificationsIndicator

java.lang.Object
com.vaadin.flow.component.Component
io.jmix.notificationsflowui.kit.component.notificationsindicator.JmixNotificationsIndicator
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.BlurNotifier<JmixNotificationsIndicator>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.Focusable<JmixNotificationsIndicator>, com.vaadin.flow.component.FocusNotifier<JmixNotificationsIndicator>, com.vaadin.flow.component.HasAriaLabel, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, Serializable
Direct Known Subclasses:
NotificationsIndicator

@Tag("jmix-notifications-indicator") @JsModule("./src/notifications-indicator/jmix-notifications-indicator.js") public class JmixNotificationsIndicator extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.Focusable<JmixNotificationsIndicator>, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasAriaLabel
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier

    com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier

    com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.vaadin.flow.component.Component
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    fireCountChangeEvent(Integer previousCount, Integer count)
     
    protected Integer
     
    com.vaadin.flow.component.Component
     
    protected void
    Sets the unread notifications count
    void
    setIcon(com.vaadin.flow.component.Component component)
    Sets an icon to component.
    protected void
    setupComponentToIconSlot(com.vaadin.flow.component.Component component)
     
    protected void
    setupRefreshIcon(com.vaadin.flow.component.Component component)
     

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.BlurNotifier

    addBlurListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.Focusable

    addFocusShortcut, blur, focus, getTabIndex, setTabIndex

    Methods inherited from interface com.vaadin.flow.component.FocusNotifier

    addFocusListener

    Methods inherited from interface com.vaadin.flow.component.HasAriaLabel

    getAriaLabel, getAriaLabelledBy, setAriaLabel, setAriaLabelledBy

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
  • Field Details

    • icon

      protected com.vaadin.flow.component.Component icon
  • Constructor Details

    • JmixNotificationsIndicator

      public JmixNotificationsIndicator()
  • Method Details

    • getIcon

      public com.vaadin.flow.component.Component getIcon()
      Returns:
      icon or null if not set
    • setIcon

      public void setIcon(com.vaadin.flow.component.Component component)
      Sets an icon to component.
      Parameters:
      component - icon to set
    • getCount

      protected Integer getCount()
      Returns:
      unread notifications count
    • setCount

      protected void setCount(Integer count)
      Sets the unread notifications count
      Parameters:
      count - unread notifications count
    • doSetCount

      protected void doSetCount(Integer count)
    • fireCountChangeEvent

      protected void fireCountChangeEvent(Integer previousCount, Integer count)
    • setupComponentToIconSlot

      protected void setupComponentToIconSlot(com.vaadin.flow.component.Component component)
    • setupRefreshIcon

      protected void setupRefreshIcon(com.vaadin.flow.component.Component component)