public static class Grid.ColumnVisibilityChangeEvent extends Component.Event implements HasUserOriginated
source| Constructor and Description |
|---|
ColumnVisibilityChangeEvent(Grid<?> source,
Grid.Column<?,?> column,
boolean hidden,
boolean isUserOriginated)
Constructor for a column visibility change event.
|
| Modifier and Type | Method and Description |
|---|---|
Grid.Column<?,?> |
getColumn()
Gets the column that became hidden or visible.
|
boolean |
isHidden()
Was the column set hidden or visible.
|
boolean |
isUserOriginated()
Returns whether this event was triggered by user interaction, on the
client side, or programmatically, on the server side.
|
getComponentgetConnectorgetSource, toStringpublic ColumnVisibilityChangeEvent(Grid<?> source, Grid.Column<?,?> column, boolean hidden, boolean isUserOriginated)
source - the grid from which this event originatescolumn - the column that changed its visibilityhidden - true if the column was hidden,
false if it became visibleisUserOriginated - true if the event was triggered by an UI
interactionpublic Grid.Column<?,?> getColumn()
Grid.Column.isHidden()public boolean isHidden()
true if the column was hidden false
if it was set visiblepublic boolean isUserOriginated()
HasUserOriginatedisUserOriginated in interface HasUserOriginatedtrue if this event originates from the client,
false otherwise.Copyright © 2021 Vaadin Ltd. All rights reserved.