com.vaadin.client.widget.grid.events.

Class 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

    • Constructor Detail

      • ColumnVisibilityChangeEvent

        public ColumnVisibilityChangeEvent​(Grid.Column<?,​T> column,
                                           boolean hidden,
                                           boolean userOriginated)

        Constructs a visibility change event for a grid column.

        Parameters:

        column - the updated column

        hidden - true if the column is now hidden, false otherwise

        userOriginated - true if the event was triggered by user interaction, false otherwise

    • Method Detail

      • getType

        public static final com.google.gwt.event.shared.GwtEvent.Type<ColumnVisibilityChangeHandler<?>> getType()

        Returns the associated handler type.

        Returns:

        the handler type

      • 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 hidden false 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