[ https://issues.apache.org/jira/browse/PIVOT-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071706#comment-13071706 ]
Sandro Martini commented on PIVOT-694: -------------------------------------- Hi Greg, thanks for the help ... you have reason, I was more focused only on a "clearSelection" but probably for this there is already the setSelectedIndex(-1) method in many components ... but I'm guessing if this could be useful in ButtonGroup/RadioButtonGroup for example but this is another story. Maybe in my new Pivot694, add button for "Clear Selection" in all components, and another for "Clear Data", to test both behaviors. I'll try to reproduce the condition where clear means delete all data inside the element, and see what happens. Then in other components, to see what happens. Bye > Improvement in ListButton clear() method > ---------------------------------------- > > Key: PIVOT-694 > URL: https://issues.apache.org/jira/browse/PIVOT-694 > Project: Pivot > Issue Type: Improvement > Components: wtk > Affects Versions: 2.0 > Environment: Pivot 2.0 > Win 7 > Reporter: Luiz Gustavo Stábile de Souza > Assignee: Sandro Martini > Priority: Minor > Fix For: 2.0.1 > > Attachments: listButton problem.png > > > I'm having problems with ListButton. > When I try to clean a ListButton the last text selected before remains > selected, even with no item in the ListData of the ListButton. > I tried listButton.clear() and listButton.getListData().clear(), but with > none of this I can scape the problem. > I debugged the application, and the listData of the ListButton is clear after > getListData().clear(), but the last selected text remains showing. > See attached image. > Perhaps listButton.setButtonData(null) should be performed in > ListButton#clear(). > Cheers -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira