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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSetCount(Integer count) protected voidfireCountChangeEvent(Integer previousCount, Integer count) protected IntegergetCount()com.vaadin.flow.component.ComponentgetIcon()protected voidSets the unread notifications countvoidsetIcon(com.vaadin.flow.component.Component component) Sets an icon to component.protected voidsetupComponentToIconSlot(com.vaadin.flow.component.Component component) protected voidsetupRefreshIcon(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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.HasAriaLabel
getAriaLabel, getAriaLabelledBy, setAriaLabel, setAriaLabelledByMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods 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
nullif not set
-
setIcon
public void setIcon(com.vaadin.flow.component.Component component) Sets an icon to component.- Parameters:
component- icon to set
-
getCount
- Returns:
- unread notifications count
-
setCount
Sets the unread notifications count- Parameters:
count- unread notifications count
-
doSetCount
-
fireCountChangeEvent
-
setupComponentToIconSlot
protected void setupComponentToIconSlot(com.vaadin.flow.component.Component component) -
setupRefreshIcon
protected void setupRefreshIcon(com.vaadin.flow.component.Component component)
-