Interface DetachNotifier

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractCompositeField, AbstractField, AbstractRouteNotFoundError, AbstractSinglePropertyField, Component, Composite, Html, HtmlComponent, HtmlContainer, InternalServerError, RouteAccessDeniedError, RouteNotFoundError, RouterLink, Svg, Text, UI, UI.ClientViewPlaceholder, WebComponentUI, WebComponentWrapper

public interface DetachNotifier extends Serializable
Mixin interface for components that support adding detach listeners.
Since:
1.0
Author:
Vaadin Ltd
  • Method Details

    • addDetachListener

      default Registration addDetachListener(ComponentEventListener<DetachEvent> listener)
      Adds a detach listener to this component.
      Parameters:
      listener - the listener to add, not null
      Returns:
      a handle that can be used for removing the listener