[ https://issues.apache.org/jira/browse/PIVOT-569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897377#action_12897377 ]
Greg Brown commented on PIVOT-569: ---------------------------------- Now that I think about this more, I am wondering if an annotation might not be the right approach. The annotation implies that whenever the selected index change event is fired, the selected item change event will also be fired. However, there are cases when that may not be correct. Selected index and selected item changes are only 1:1 when the selected index is changed explicitly, or the selected item itself is deleted and the selected index is reset to -1. Otherwise, the actual selected item does not change, so an event would be incorrect. Another down side to the annotation is that there is no actual selectedItemChanged() method a caller can implement. Callers could only be notified of this event via a bean monitor property change event. That may not be convenient, and it is not consistent with the rest of the framework. > Make ListView selectedItem, etc. notifying properties > ----------------------------------------------------- > > Key: PIVOT-569 > URL: https://issues.apache.org/jira/browse/PIVOT-569 > Project: Pivot > Issue Type: Improvement > Components: wtk > Reporter: Greg Brown > Assignee: Todd Volkert > Priority: Minor > Fix For: 2.0 > > > These properties don't currently fire events when they change, so it is not > possible to dynamically bind to them using namespace bindings. > Note that they should only fire when selectMode == SINGLE. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.