Class ColumnVisibilityChangeEvent<T>
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<ColumnVisibilityChangeHandler<T>>
-
- com.vaadin.client.widget.grid.events.ColumnVisibilityChangeEvent<T>
-
- Type Parameters:
T
- The row type of the grid. The row type is the POJO type from where the data is retrieved into the column cells.
public class ColumnVisibilityChangeEvent<T> extends com.google.gwt.event.shared.GwtEvent<ColumnVisibilityChangeHandler<T>>
An event for notifying that the columns in the Grid's have changed visibility.- Since:
- 7.5.0
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H extends Object>
-
-
Constructor Summary
Constructors Constructor Description ColumnVisibilityChangeEvent(Grid.Column<?,T> column, boolean hidden, boolean userOriginated)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(ColumnVisibilityChangeHandler<T> handler)
com.google.gwt.event.shared.GwtEvent.Type<ColumnVisibilityChangeHandler<T>>
getAssociatedType()
Grid.Column<?,T>
getColumn()
Returns the column where the visibility change occurred.static com.google.gwt.event.shared.GwtEvent.Type<ColumnVisibilityChangeHandler<?>>
getType()
boolean
isHidden()
Was the column set hidden or visible.boolean
isUserOriginated()
Is the visibility change triggered by user.-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
-
-
-
Constructor Detail
-
ColumnVisibilityChangeEvent
public ColumnVisibilityChangeEvent(Grid.Column<?,T> column, boolean hidden, boolean userOriginated)
-
-
Method Detail
-
getType
public static final com.google.gwt.event.shared.GwtEvent.Type<ColumnVisibilityChangeHandler<?>> getType()
-
getColumn
public Grid.Column<?,T> getColumn()
Returns the column where the visibility change occurred.- Returns:
- the column where the visibility change occurred.
-
isHidden
public boolean isHidden()
Was the column set hidden or visible.- Returns:
true
if the column was hiddenfalse
if it was set visible
-
isUserOriginated
public boolean isUserOriginated()
Is the visibility change triggered by user.- Returns:
true
if the change was triggered by user,false
if not
-
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<ColumnVisibilityChangeHandler<T>> getAssociatedType()
- Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<ColumnVisibilityChangeHandler<T>>
-
dispatch
protected void dispatch(ColumnVisibilityChangeHandler<T> handler)
- Specified by:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<ColumnVisibilityChangeHandler<T>>
-
-