com.vaadin.ui.

Interface Grid.SelectionModel.Multi

    • Method Detail

      • select

        boolean select​(Object... itemIds)
                throws IllegalArgumentException

        Marks items as selected.

        This method does not clear any previous selection state, only adds to it.

        Parameters:

        itemIds - the itemId(s) to mark as selected

        Returns:

        true if the selection state changed. false if all the given itemIds already were selected

        Throws:

        IllegalArgumentException - if the itemIds varargs array is null or given itemIds don't exist in the container of Grid

        See Also:

        deselect(Object...)

      • select

        boolean select​(Collection<?> itemIds)
                throws IllegalArgumentException

        Marks items as selected.

        This method does not clear any previous selection state, only adds to it.

        Parameters:

        itemIds - the itemIds to mark as selected

        Returns:

        true if the selection state changed. false if all the given itemIds already were selected

        Throws:

        IllegalArgumentException - if itemIds is null or given itemIds don't exist in the container of Grid

        See Also:

        deselect(Collection)

      • deselect

        boolean deselect​(Object... itemIds)
                  throws IllegalArgumentException

        Marks items as deselected.

        Parameters:

        itemIds - the itemId(s) to remove from being selected

        Returns:

        true if the selection state changed. false if none the given itemIds were selected previously

        Throws:

        IllegalArgumentException - if the itemIds varargs array is null

        See Also:

        select(Object...)

      • selectAll

        boolean selectAll()

        Marks all the items in the current Container as selected

        Returns:

        true iff some items were previously not selected

        See Also:

        deselectAll()

      • deselectAll

        boolean deselectAll()

        Marks all the items in the current Container as deselected

        Returns:

        true iff some items were previously selected

        See Also:

        selectAll()

      • setSelected

        boolean setSelected​(Collection<?> itemIds)
                     throws IllegalArgumentException

        Marks items as selected while deselecting all items not in the given Collection.

        Parameters:

        itemIds - the itemIds to mark as selected

        Returns:

        true if the selection state changed. false if all the given itemIds already were selected

        Throws:

        IllegalArgumentException - if itemIds is null or given itemIds don't exist in the container of Grid

      • setSelected

        boolean setSelected​(Object... itemIds)
                     throws IllegalArgumentException

        Marks items as selected while deselecting all items not in the varargs array.

        Parameters:

        itemIds - the itemIds to mark as selected

        Returns:

        true if the selection state changed. false if all the given itemIds already were selected

        Throws:

        IllegalArgumentException - if the itemIds varargs array is null or given itemIds don't exist in the container of Grid