Java javax.swing DefaultListSelectionModel fields, constructors, methods, implement or subclass

Example usage for Java javax.swing DefaultListSelectionModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing DefaultListSelectionModel.

The text is from its open source code.

Constructor

Method

voidaddListSelectionListener(ListSelectionListener l)
voidaddSelectionInterval(int index0, int index1)
Changes the selection to be the set union of the current selection and the indices between index0 and index1 inclusive.
voidclearSelection()
Objectclone()
Returns a clone of this selection model with the same selection.
intgetAnchorSelectionIndex()
intgetLeadSelectionIndex()
T[]getListeners(Class listenerType)
Returns an array of all the objects currently registered as FooListeners upon this model.
ListSelectionListener[]getListSelectionListeners()
Returns an array of all the list selection listeners registered on this DefaultListSelectionModel.
intgetMaxSelectionIndex()
intgetMinSelectionIndex()
intgetSelectionMode()
booleangetValueIsAdjusting()
voidinsertIndexInterval(int index, int length, boolean before)
Insert length indices beginning before/after index.
booleanisLeadAnchorNotificationEnabled()
Returns the value of the leadAnchorNotificationEnabled flag.
booleanisSelectedIndex(int index)
booleanisSelectionEmpty()
voidmoveLeadSelectionIndex(int leadIndex)
Set the lead selection index, leaving all selection values unchanged.
voidremoveIndexInterval(int index0, int index1)
Remove the indices in the interval index0,index1 (inclusive) from the selection model.
voidremoveListSelectionListener(ListSelectionListener l)
voidremoveSelectionInterval(int index0, int index1)
Changes the selection to be the set difference of the current selection and the indices between index0 and index1 inclusive.
voidsetAnchorSelectionIndex(int anchorIndex)
Set the anchor selection index, leaving all selection values unchanged.
voidsetLeadAnchorNotificationEnabled(boolean flag)
Sets the value of the leadAnchorNotificationEnabled flag.
voidsetLeadSelectionIndex(int leadIndex)
Sets the lead selection index, ensuring that values between the anchor and the new lead are either all selected or all deselected.
voidsetSelectionMode(int selectionMode)
StringtoString()
Returns a string that displays and identifies this object's properties.