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

public static class FGrid.ColumnVisibilityChangeEvent extends Event
An event that is fired when a column's visibility changes.
See Also:
  • 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 originates
      column - the column that changed its visibility
      hidden - true if the column was hidden, false if it became visible
      isUserOriginated - true iff the event was triggered by an UI interaction
  • Method Details

    • getColumn

      public FGrid.Column 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:
      true if the column was hidden false if it was set visible
    • isUserOriginated

      public boolean isUserOriginated()
      Returns true if the column reorder was done by the user, false if not and it was triggered by server side code.
      Returns:
      true if event is a result of user interaction