You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Edvin Syse (JIRA)" <ji...@apache.org> on 2011/07/14 13:29:59 UTC

[jira] [Created] (PIVOT-771) getSelectedIndex()/getSelectedPath() in TreeView, ListView and TableView should not throw Exception when in SelectMode.MULTI

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

        

[jira] [Commented] (PIVOT-771) getSelectedIndex()/getSelectedPath() in TreeView, ListView and TableView should not throw Exception when in SelectMode.MULTI

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267337#comment-13267337 ] 

Sandro Martini commented on PIVOT-771:
--------------------------------------

Hi all, I'm ready to test/fix this for 2.0.2, so unless objections tomorrow I'll commit the fix.

                
> 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, 2.0.1
>            Reporter: Edvin Syse
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.2
>
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIVOT-771) getSelectedIndex()/getSelectedPath() in TreeView, ListView and TableView should not throw Exception when in SelectMode.MULTI

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini resolved PIVOT-771.
----------------------------------

    Resolution: Fixed

Resolved. Thanks to Edvin for this.

For a future release, verify if could be useful (in ListView/TableView/TreeView) to notify a warning when the selection mode in not single, before returning the first element.

                
> 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, 2.0.1
>            Reporter: Edvin Syse
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.2
>
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-771) getSelectedIndex()/getSelectedPath() in TreeView, ListView and TableView should not throw Exception when in SelectMode.MULTI

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-771:
---------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s: 2.0.1
        Fix Version/s:     (was: 2.0.1)
                       2.0.2
             Assignee: Sandro Martini

Reassigned to me, just to remember to make some tests.


> 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, 2.0.1
>            Reporter: Edvin Syse
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0.2
>
>         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

        

[jira] [Updated] (PIVOT-771) getSelectedIndex()/getSelectedPath() in TreeView, ListView and TableView should not throw Exception when in SelectMode.MULTI

Posted by "Edvin Syse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edvin Syse updated PIVOT-771:
-----------------------------

    Attachment: getSelectedReturnsFirstSelected.patch

Path to remove the exception and delegate to getFirstSelectedIndex().

> 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