Package com.vaadin.featurepack.ui
Class FGrid.ColumnVisibilityChangeEvent
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.ColumnVisibilityChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
FGrid
An event that is fired when a column's visibility changes.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionColumnVisibilityChangeEvent(FGrid source, FGrid.Column column, boolean hidden, boolean isUserOriginated) Constructor for a column visibility change event. -
Method Summary
Modifier and TypeMethodDescriptionGets the column that became hidden or visible.booleanisHidden()Was the column set hidden or visible.booleanReturnstrueif the column reorder 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
-
ColumnVisibilityChangeEvent
public ColumnVisibilityChangeEvent(FGrid source, FGrid.Column column, boolean hidden, boolean isUserOriginated) Constructor for a column visibility change event.- Parameters:
source- the grid from which this event originatescolumn- the column that changed its visibilityhidden-trueif the column was hidden,falseif it became visibleisUserOriginated-trueiff the event was triggered by an UI interaction
-
-
Method Details
-
getColumn
Gets the column that became hidden or visible.- Returns:
- the column that became hidden or visible.
- See Also:
-
isHidden
public boolean isHidden()Was the column set hidden or visible.- Returns:
trueif the column was hiddenfalseif it was set visible
-
isUserOriginated
public boolean isUserOriginated()Returnstrueif the column reorder was done by the user,falseif not and it was triggered by server side code.- Returns:
trueif event is a result of user interaction
-