-
Bug
-
Resolution: Fixed
-
P4
-
8u40
-
8u40b12
assume
- multiple indices selected
- having a listener on selectedIndices
- add item to listView's items
such that f.i.
// before add item
selectedIndices = [2, 3]
// after add item
selectedIndices = [3, 4]
// listener on selectedIndices:
c -> {
while(c.next()) {
assertFalse(c.wasPermutated());
}
}
Whatever the change to expect (might be a single replace, f.i.) - it's not a permutation as fired by ListView's selectedIndices.
for runnable code, see SO http://stackoverflow.com/q/26913280/203657
- multiple indices selected
- having a listener on selectedIndices
- add item to listView's items
such that f.i.
// before add item
selectedIndices = [2, 3]
// after add item
selectedIndices = [3, 4]
// listener on selectedIndices:
c -> {
while(c.next()) {
assertFalse(c.wasPermutated());
}
}
Whatever the change to expect (might be a single replace, f.i.) - it's not a permutation as fired by ListView's selectedIndices.
for runnable code, see SO http://stackoverflow.com/q/26913280/203657
- relates to
-
JDK-8147852 ListView selectedIndices: fire incorrect events on items modification
-
- Open
-
-
JDK-8088896 TableView: selectedIndices fires incorrect change on items modification
-
- Resolved
-