Sets the
valueIsAdjusting
property, which indicates whether or not upcoming selection changes should be considered part of a single change. The value of this property is used to initialize the
valueIsAdjusting
property of the
ListSelectionEvent
s that are generated.
For example, if the selection is being updated in response to a user drag, this property can be set to true
when the drag is initiated and set to false
when the drag is finished. During the drag, listeners receive events with a valueIsAdjusting
property set to true
. At the end of the drag, when the change is finalized, listeners receive an event with the value set to false
. Listeners can use this pattern if they wish to update only when a change has been finalized.
Setting this property to true
begins a series of changes that is to be considered part of a single change. When the property is changed back to false
, an event is sent out characterizing the entire selection change (if there was one), with the event's valueIsAdjusting
property set to false
.