Example usage for Java javax.swing DefaultListSelectionModel fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListSelectionListener(ListSelectionListener l) |
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() |
Object | clone() Returns a clone of this selection model with the same selection. |
int | getAnchorSelectionIndex() |
int | getLeadSelectionIndex() |
T[] | getListeners(Class Returns an array of all the objects currently registered as FooListener s upon this model. |
ListSelectionListener[] | getListSelectionListeners() Returns an array of all the list selection listeners registered on this DefaultListSelectionModel . |
int | getMaxSelectionIndex() |
int | getMinSelectionIndex() |
int | getSelectionMode() |
boolean | getValueIsAdjusting() |
void | insertIndexInterval(int index, int length, boolean before) Insert length indices beginning before/after index. |
boolean | isLeadAnchorNotificationEnabled() Returns the value of the leadAnchorNotificationEnabled flag. |
boolean | isSelectedIndex(int index) |
boolean | isSelectionEmpty() |
void | moveLeadSelectionIndex(int leadIndex) Set the lead selection index, leaving all selection values unchanged. |
void | removeIndexInterval(int index0, int index1) Remove the indices in the interval index0,index1 (inclusive) from the selection model. |
void | removeListSelectionListener(ListSelectionListener l) |
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 anchorIndex) Set the anchor selection index, leaving all selection values unchanged. |
void | setLeadAnchorNotificationEnabled(boolean flag) Sets the value of the leadAnchorNotificationEnabled flag. |
void | setLeadSelectionIndex(int leadIndex) Sets the lead selection index, ensuring that values between the anchor and the new lead are either all selected or all deselected. |
void | setSelectionMode(int selectionMode) |
String | toString() Returns a string that displays and identifies this object's properties. |