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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: wtk
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: