com.vaadin.flow.component.dashboard.
Class DashboardItemMovedEvent
All Implemented Interfaces:
Fired when an item was moved.
Author:
Vaadin Ltd.
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionDashboardItemMovedEvent
(Dashboard source, boolean fromClient, Component item, List<Component> items, DashboardSection section) Creates a dashboard item moved event.
-
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DashboardItemMovedEvent
public DashboardItemMovedEvent(Dashboard source, boolean fromClient, Component item, List<Component> items, DashboardSection section) Creates a dashboard item moved event.
Parameters:
source
- Dashboard that contains the item that was movedfromClient
-true
if the event originated from the client side,false
otherwiseitem
- The moved itemitems
- The root level items of the dashboardsection
- The section that contains the moved item,null
if the item is a direct child of the dashboard
-
-
Method Details
-
getItem
Returns the moved item
Returns:
the moved item
-
getItems
Returns the root level items of the dashboard
Returns:
the root level items of the dashboard
-
getSection
Returns the section that contains the moved item, or an empty optional if the item is a direct child of the dashboard
Returns:
the section that contains the moved item, or an empty optional if the item is a direct child of the dashboard
-