Package com.vaadin.featurepack.ui
Class FGrid.ColumnResizeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
com.vaadin.featurepack.ui.Event
com.vaadin.featurepack.ui.FGrid.ColumnResizeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
FGrid
An event that is fired when a column is resized, either programmatically
or by the user.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionColumnResizeEvent(FGrid source, FGrid.Column column, boolean userOriginated) -
Method Summary
Modifier and TypeMethodDescriptionReturns the column that was resized.booleanReturnstrueif the column resize was done by the user,falseif not and it was triggered by server side code.Methods inherited from class com.vaadin.featurepack.ui.Event
getComponentMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ColumnResizeEvent
- Parameters:
source- the grid where the event originated fromuserOriginated-trueif event is a result of user interaction,falseif from API call
-
-
Method Details
-
getColumn
Returns the column that was resized.- Returns:
- the resized column.
-
isUserOriginated
public boolean isUserOriginated()Returnstrueif the column resize was done by the user,falseif not and it was triggered by server side code.- Returns:
trueif event is a result of user interaction
-