Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-771

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0, 2.0.1
    • 2.0.2
    • wtk
    • None

    Description

      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.

      Attachments

        Activity

          People

            smartini Sandro Martini
            edvin Edvin Syse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: