Interface ListSelectionPolicy<V>

    • Method Detail

      • getSetSelectedIndices

        int[] getSetSelectedIndices​(ListSelectModel<V> selectModel,
                                    int[] indices)
        Determines which requested indices may be set as the selection. This implementation allows the setting of all requested indices.
        Parameters:
        selectModel - The model containing the values to be selected.
        indices - The requested indices to set as the selection.
        Returns:
        The indices that can be set as the selection.
      • getAddSelectedIndices

        int[] getAddSelectedIndices​(ListSelectModel<V> selectModel,
                                    int[] indices)
        Determines which requested indices may be added to the selection. This implementation allows the addition of all requested indices.
        Parameters:
        selectModel - The model containing the values to be selected.
        indices - The requested indices to add to the selection.
        Returns:
        The indices that can be added to the selection.
      • getRemoveSelectedIndices

        int[] getRemoveSelectedIndices​(ListSelectModel<V> selectModel,
                                       int[] indices)
        Determines which requested indices may be removed from the selection. This implementation allows the removal of all requested indices.
        Parameters:
        selectModel - The model containing the values to be removed.
        indices - The requested indices to remove to the selection.
        Returns:
        The indices that can be removed from the selection.