com.vaadin.flow.component.grid.
Class ColumnResizeEvent<T>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Grid<T>>
-
- com.vaadin.flow.component.grid.ColumnResizeEvent<T>
-
Type Parameters:
T
- the grid bean typeAll Implemented Interfaces:
@DomEvent(value="column-drag-resize") public class ColumnResizeEvent<T> extends ComponentEvent<Grid<T>>
Event fired when a Grid column is resized by the user.
Author:
Vaadin Ltd
See Also:
Grid.addColumnResizeListener(com.vaadin.flow.component.ComponentEventListener)
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description ColumnResizeEvent(Grid<T> source, boolean fromClient, String resizedColumnKey)
Creates a new column resize event.
-
Method Summary
All Methods Modifier and Type Method and Description Grid.Column<T>
getResizedColumn()
Returns the column that was the target of user's resize action
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
ColumnResizeEvent
public ColumnResizeEvent(Grid<T> source, boolean fromClient, @EventData(value="event.detail.resizedColumnKey") String resizedColumnKey)
Creates a new column resize event.
Parameters:
source
- the component that fired the eventfromClient
-true
if the event was originally fired on the client,false
if the event originates from server-side logicresizedColumnKey
- internal id of the column that was the target of user's resize action
-
-
Method Detail
-
getResizedColumn
public Grid.Column<T> getResizedColumn()
Returns the column that was the target of user's resize action
Returns:
resize action target column
-
-