Package com.vaadin.kubernetes.starter.ui
Class VersionNotifier
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.kubernetes.starter.ui.VersionNotifier
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
@Tag("version-notifier")
@JsModule("./components/version-notifier.ts")
public class VersionNotifier
extends com.vaadin.flow.component.Component
The version notifier component is used when there is a new version and the
update version cookie is set.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent which is dispatched when the user accepts the version change through the notifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSwitchVersionEventListener(com.vaadin.flow.component.ComponentEventListener<VersionNotifier.SwitchVersionEvent> listener) Adds a listener to listen to switch version events.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.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
addSwitchVersionEventListener
public void addSwitchVersionEventListener(com.vaadin.flow.component.ComponentEventListener<VersionNotifier.SwitchVersionEvent> listener) Adds a listener to listen to switch version events.- Parameters:
listener- the listener to add.
-