Class DashboardItemMovedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Dashboard>
com.vaadin.flow.component.dashboard.DashboardItemMovedEvent
- All Implemented Interfaces:
Serializable
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, com.vaadin.flow.component.Component item, List<com.vaadin.flow.component.Component> items, DashboardSection section) Creates a dashboard item moved event. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentgetItem()Returns the moved itemList<com.vaadin.flow.component.Component> getItems()Returns the root level items of the dashboardReturns the section that contains the moved item, or an empty optional if the item is a direct child of the dashboardMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DashboardItemMovedEvent
public DashboardItemMovedEvent(Dashboard source, boolean fromClient, com.vaadin.flow.component.Component item, List<com.vaadin.flow.component.Component> items, DashboardSection section) Creates a dashboard item moved event.- Parameters:
source- Dashboard that contains the item that was movedfromClient-trueif the event originated from the client side,falseotherwiseitem- The moved itemitems- The root level items of the dashboardsection- The section that contains the moved item,nullif the item is a direct child of the dashboard
-
-
Method Details
-
getItem
public com.vaadin.flow.component.Component 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
-