Package com.vaadin.ui

Class Grid.ColumnVisibilityChangeEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnVisibilityChangeEvent​(Grid<?> source, Grid.Column<?,​?> column, boolean hidden, boolean isUserOriginated)
      Constructor for a column visibility change event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ColumnVisibilityChangeEvent

        public ColumnVisibilityChangeEvent​(Grid<?> source,
                                           Grid.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 if the event was triggered by an UI interaction
    • Method Detail

      • getColumn

        public Grid.Column<?,​?> getColumn()
        Gets the column that became hidden or visible.
        Returns:
        the column that became hidden or visible.
        See Also:
        Grid.Column.isHidden()
      • 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()
        Description copied from interface: HasUserOriginated
        Returns whether this event was triggered by user interaction, on the client side, or programmatically, on the server side.
        Specified by:
        isUserOriginated in interface HasUserOriginated
        Returns:
        true if this event originates from the client, false otherwise.