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

Right click select on a TableView (and associated type widgets) can not be filtered out

    XMLWordPrintable

Details

    Description

      The right click mouse event on a TableView (and TreeTableView and I suspect Listview and TableView) widgets can not be filtered out to prevent selection. I have posted a question on StackOverflow that has an example:

      http://stackoverflow.com/questions/28376103/javafx-tableview-filter-right-mouse-button-selection

      I was provided with a workaround that requires me to define a custom TableCellBehavior that overrides the doSelect() method.

      Before this I tried putting event filters on all associated components (table, row, cell) and none of them would filter out the right mouse event for selecting. All other mouse events were filtered.

      Note also that it does not appear there are any javadocs for the TableCellSkin and TableCellBehavior classes and Google searches turn up almost nothing. It is very difficult to find any information on using these classes.

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: