Is ListView missing a selectionEnabledProperty?

Jonathan Giles jonathan.giles at oracle.com
Sat Apr 27 14:36:05 PDT 2013


This already exists as a tweak request here:

https://javafx-jira.kenai.com/browse/RT-18937

I haven't yet targeted it to Lombard as my primary focus at present is 
bug fixing, but I'm happy to work with anyone willing to develop a 
patch. It should be relatively trivial - add to the SelectionMode enum 
the NONE value, and add the relevant conditional checks throughout the 
subclasses of the MultipleSelectionModel class.

-- Jonathan

On 27/04/2013 5:32 a.m., Randahl Fink Isaksen wrote:
> I have a use case where I show a list of items to the user. Since the user is not expected to select any of the items, I wish to turn off selection. this can be achieved by disabling the list, but I do not wish to go down that alley, since this changes the visual appearance of the list, and keeps my user from scrolling among the list items.
>
> I was hoping for something like
>
>      getSelectionModel().setSelectionMode(SelectionMode.NONE)
>
> but this is not possible. Am I missing something here, or should I file a feature request?
>
> Thanks
>
> Randahl
>



More information about the openjfx-dev mailing list