Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091733

Prevent deselect of sole row in single selection mode

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u20, 8u25
    • javafx
    • None
    • JDK 8u25, Win 7 Pro SP1, 64 Bit

      Just noticed that it is possible to deselect the sole selected item in single selection mode. A discussion with our test users resulted in a concensus that least users actually expect that it is possible to have nothing selected at all in a SINGLE selection mode (while this might make sense in MULTIPLE selection mode).

      Hence, we want to propose that in a future release of JavaFX there should be an additional flag which could be used with either mode, SINGLE and MULTIPLE: boolean preventEmptySelection().

      What the flag does is to prevent removal of the last item of the selection, hence a selection will always contain at least one item. To guarantee this, the flag also will add the very first item (index 0) to the selection as soon as data gets available.

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: