getSelectedIndex()/getSelectedPath() in TreeView, ListView and TableView should 
not throw Exception when in SelectMode.MULTI
----------------------------------------------------------------------------------------------------------------------------

                 Key: PIVOT-771
                 URL: https://issues.apache.org/jira/browse/PIVOT-771
             Project: Pivot
          Issue Type: Improvement
          Components: wtk
    Affects Versions: 2.0
            Reporter: Edvin Syse
             Fix For: 2.0.1
         Attachments: getSelectedReturnsFirstSelected.patch

This applies to TreeView, ListView and TableView. I'll use TableView in the 
example.

If you set the TableView to SelectMode.MULTI and call getSelectedIndex(), an 
Exception is thrown. Most GUI frameworks I've worked with simply returns the 
first selected index is this case. I propose to remove the exception and 
delegate to getFirstSelectedIndex() to be more in line with other GUI 
frameworks.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to