Class NotificationFactory.DefaultNotification

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.notification.Notification
hu.rts.mike.example.dev.crm.component.factory.NotificationFactory.DefaultNotification
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.notification.NotificationVariant>, Serializable
Enclosing class:
NotificationFactory

private static class NotificationFactory.DefaultNotification extends com.vaadin.flow.component.notification.Notification
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.notification.Notification

    com.vaadin.flow.component.notification.Notification.OpenedChangeEvent, com.vaadin.flow.component.notification.Notification.Position
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultNotification(String title, String subText, com.vaadin.flow.component.icon.Icon icon, int duration, com.vaadin.flow.component.notification.NotificationVariant variant)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private com.vaadin.flow.component.button.Button
     
    private com.vaadin.flow.component.html.Div
    addTitleAndSubText(String title, String subText)
     

    Methods inherited from class com.vaadin.flow.component.notification.Notification

    add, addAttachListener, addComponentAtIndex, addDetachListener, addOpenedChangeListener, close, getClassNames, getDuration, getPosition, getStyle, isOpened, onAttach, onDetach, open, setClassName, setDuration, setOpened, setPosition, setText, show, show

    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, 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.HasComponents

    add, add, addComponentAsFirst, remove, remove, removeAll

    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.HasStyle

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

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

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants
  • Constructor Details

    • DefaultNotification

      public DefaultNotification(String title, String subText, com.vaadin.flow.component.icon.Icon icon, int duration, com.vaadin.flow.component.notification.NotificationVariant variant)
  • Method Details

    • addTitleAndSubText

      private com.vaadin.flow.component.html.Div addTitleAndSubText(String title, String subText)
    • addCloseButton

      private com.vaadin.flow.component.button.Button addCloseButton()