Class DashboardItemRemovedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Dashboard>
com.vaadin.flow.component.dashboard.DashboardItemRemovedEvent
All Implemented Interfaces:
Serializable

public class DashboardItemRemovedEvent extends com.vaadin.flow.component.ComponentEvent<Dashboard>
Fired when an item was removed.
Author:
Vaadin Ltd.
See Also:
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    DashboardItemRemovedEvent(Dashboard source, boolean fromClient, com.vaadin.flow.component.Component item, List<com.vaadin.flow.component.Component> items)
    Creates a dashboard item removed event.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.Component
    Returns the removed item
    List<com.vaadin.flow.component.Component>
    Returns the root level items of the dashboard

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

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DashboardItemRemovedEvent

      public DashboardItemRemovedEvent(Dashboard source, boolean fromClient, com.vaadin.flow.component.Component item, List<com.vaadin.flow.component.Component> items)
      Creates a dashboard item removed event.
      Parameters:
      source - Dashboard that contains the item that was removed
      fromClient - true if the event originated from the client side, false otherwise
      item - The removed item
      items - The root level items of the dashboard
  • Method Details

    • getItem

      public com.vaadin.flow.component.Component getItem()
      Returns the removed item
      Returns:
      the removed item
    • getItems

      public List<com.vaadin.flow.component.Component> getItems()
      Returns the root level items of the dashboard
      Returns:
      the root level items of the dashboard