Class DashboardItemSelectedChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Dashboard>
com.vaadin.flow.component.dashboard.DashboardItemSelectedChangedEvent
- All Implemented Interfaces:
Serializable
@DomEvent("dashboard-item-selected-changed")
public class DashboardItemSelectedChangedEvent
extends com.vaadin.flow.component.ComponentEvent<Dashboard>
Fired when an item was selected.
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDashboardItemSelectedChangedEvent(Dashboard source, boolean fromClient, int itemId, boolean selected) Creates a dashboard item selected changed event. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentgetItem()Returns the item of which the selected state has changedbooleanReturns whether the item is selectedMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DashboardItemSelectedChangedEvent
public DashboardItemSelectedChangedEvent(Dashboard source, boolean fromClient, @EventData("event.detail.item.id") int itemId, @EventData("event.detail.value") boolean selected) Creates a dashboard item selected changed event.- Parameters:
source- Dashboard that contains the item of which the selected state has changedfromClient-trueif the event originated from the client side,falseotherwiseitemId- The ID of the item of which the selected state has changedselected- Whether the item is selected
-
-
Method Details
-
getItem
public com.vaadin.flow.component.Component getItem()Returns the item of which the selected state has changed- Returns:
- the item of which the selected state has changed
-
isSelected
public boolean isSelected()Returns whether the item is selected- Returns:
- whether the item is selected
-