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

Class SelectAllEvent<T>

  • java.lang.Object
    • com.google.web.bindery.event.shared.Event<H>
      • com.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>
        • com.vaadin.client.widget.grid.events.SelectAllEvent<T>
  • Type Parameters:

    T - the type of the rows in grid

    public class SelectAllEvent<T>
    extends com.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>

    A select all event, fired by the Grid when it needs all rows in data source to be selected, OR when all rows have been selected and are now deselected.

    Since:

    7.4

    Author:

    Vaadin Ltd

    • Constructor Detail

      • SelectAllEvent

        public SelectAllEvent​(SelectionModel<T> selectionModel)

        Constructs a new select all event when all rows in grid are selected.

        Parameters:

        selectionModel - the selection model in use

      • SelectAllEvent

        public SelectAllEvent​(SelectionModel<T> selectionModel,
                              boolean allSelected)

        Parameters:

        selectionModel - the selection model in use

        allSelected - true for all selected, false for all deselected

    • Method Detail

      • getType

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

        Gets the type of the handlers for this event.

        Returns:

        the handler type

      • getAssociatedType

        public com.google.gwt.event.shared.GwtEvent.Type<SelectAllHandler<T>> getAssociatedType()

        Specified by:

        getAssociatedType in class com.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>

      • getSelectionModel

        public SelectionModel<T> getSelectionModel()

        The selection model in use.

        Returns:

        the selection model

      • isAllSelected

        public boolean isAllSelected()

        Returns whether all the rows were selected, or deselected. Deselection can only happen if all rows were previously selected.

        Returns:

        true for selecting all rows, or false for deselecting all rows