Class DashboardItemResizeModeChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Dashboard>
com.vaadin.flow.component.dashboard.DashboardItemResizeModeChangedEvent
- All Implemented Interfaces:
Serializable
@DomEvent("dashboard-item-resize-mode-changed")
public class DashboardItemResizeModeChangedEvent
extends ComponentEvent<Dashboard>
Fired when an item enters or exits resize mode. Resize mode enables using
resize buttons or keyboard to resize items.
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionDashboardItemResizeModeChangedEvent
(Dashboard source, boolean fromClient, int itemId, boolean resizeMode) Creates a dashboard item resize mode changed event. -
Method Summary
Modifier and TypeMethodDescriptiongetItem()
Returns the item of which the resize mode state has changed;boolean
Returns whether the item is in resize modeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DashboardItemResizeModeChangedEvent
public DashboardItemResizeModeChangedEvent(Dashboard source, boolean fromClient, @EventData("event.detail.item.id") int itemId, @EventData("event.detail.value") boolean resizeMode) Creates a dashboard item resize mode changed event.- Parameters:
source
- Dashboard that contains the item of which the resize mode state has changedfromClient
-true
if the event originated from the client side,false
otherwiseitemId
- The ID of the item of which the resize mode state has changedresizeMode
- Whether the item is in resize mode
-
-
Method Details
-
getItem
Returns the item of which the resize mode state has changed;- Returns:
- the item of which the resize mode state has changed
-
isResizeMode
public boolean isResizeMode()Returns whether the item is in resize mode- Returns:
- whether the item is in resize mode
-