Interface ListSelectionModel

    • Method Detail

      • isSelectedIndex

        boolean isSelectedIndex​(int index)
      • clearSelection

        void clearSelection()
      • setSelectionInterval

        void setSelectionInterval​(int index0,
                                  int index1)
      • addSelectionInterval

        void addSelectionInterval​(int index0,
                                  int index1)
      • toggleSelectionInterval

        void toggleSelectionInterval​(int index0,
                                     int index1)
      • insertIndexRange

        void insertIndexRange​(int index,
                              int length)
        Inserts new indexes. This means that existing selections are shifted to new positions.

        Please note that this is not firing any event!

        Parameters:
        index - the position to insert new indexes at
        length - the length of indexes to insert
      • removeIndexRange

        void removeIndexRange​(int index,
                              int length)
        removes indexes. This means that existing selections are shifted to new positions.

        Please note that this is not firing any event!

        Parameters:
        index - the position to removes new indexes at
        length - the length of indexes to insert
      • getMinSelectionIndex

        int getMinSelectionIndex()
      • getMaxSelectionIndex

        int getMaxSelectionIndex()
      • getAllSelectedIndexes

        java.util.List<java.lang.Integer> getAllSelectedIndexes()