Example usage for Java javax.swing ListSelectionModel fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SINGLE_SELECTION A value for the selectionMode property: select one list index at a time. |
int | SINGLE_INTERVAL_SELECTION A value for the selectionMode property: select one contiguous range of indices at a time. |
int | MULTIPLE_INTERVAL_SELECTION A value for the selectionMode property: select one or more contiguous ranges of indices at a time. |
void | addListSelectionListener(ListSelectionListener x) Add a listener to the list that's notified each time a change to the selection occurs. |
void | addSelectionInterval(int index0, int index1) Changes the selection to be the set union of the current selection and the indices between index0 and index1 inclusive. |
void | clearSelection() Change the selection to the empty set. |
int | getLeadSelectionIndex() Return the second index argument from the most recent call to setSelectionInterval(), addSelectionInterval() or removeSelectionInterval(). |
int | getMaxSelectionIndex() Returns the last selected index or -1 if the selection is empty. |
int | getMinSelectionIndex() Returns the first selected index or -1 if the selection is empty. |
int | getSelectionMode() Returns the current selection mode. |
boolean | isSelectedIndex(int index) Returns true if the specified index is selected. |
boolean | isSelectionEmpty() Returns true if no indices are selected. |
void | removeSelectionInterval(int index0, int index1) Changes the selection to be the set difference of the current selection and the indices between index0 and index1 inclusive. |
void | setAnchorSelectionIndex(int index) Set the anchor selection index. |
void | setLeadSelectionIndex(int index) Set the lead selection index. |
void | setSelectionInterval(int index0, int index1) Changes the selection to be between index0 and index1 inclusive. |
void | setSelectionMode(int selectionMode) Sets the selection mode. |
void | setValueIsAdjusting(boolean valueIsAdjusting) Sets the valueIsAdjusting property, which indicates whether or not upcoming selection changes should be considered part of a single change. |