Class DashboardItemMoveModeChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Dashboard>
com.vaadin.flow.component.dashboard.DashboardItemMoveModeChangedEvent
- All Implemented Interfaces:
Serializable
@DomEvent("dashboard-item-move-mode-changed")
public class DashboardItemMoveModeChangedEvent
extends com.vaadin.flow.component.ComponentEvent<Dashboard>
Fired when an item enters or exits move mode. Move mode enables using move
buttons or keyboard to move items.
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDashboardItemMoveModeChangedEvent(Dashboard source, boolean fromClient, int itemId, boolean moveMode) Creates a dashboard item move mode changed event. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentgetItem()Returns the item of which the move mode state has changedbooleanReturns whether the item is in move modeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DashboardItemMoveModeChangedEvent
public DashboardItemMoveModeChangedEvent(Dashboard source, boolean fromClient, @EventData("event.detail.item.id") int itemId, @EventData("event.detail.value") boolean moveMode) Creates a dashboard item move mode changed event.- Parameters:
source- Dashboard that contains the item of which the move mode state has changedfromClient-trueif the event originated from the client side,falseotherwiseitemId- The ID of the item of which the move mode state has changedmoveMode- Whether the item is in move mode
-
-
Method Details
-
getItem
public com.vaadin.flow.component.Component getItem()Returns the item of which the move mode state has changed- Returns:
- the item of which the move mode state has changed
-
isMoveMode
public boolean isMoveMode()Returns whether the item is in move mode- Returns:
- whether the item is in move mode
-