I am missing an option to send a changed from a ListBoxModel to (all) connected ListBoxes.
Whenever my model changes, I find myself hacking around adding ChangeListeners or redundant references, just to call ListBox::updateContent() or ListBox::resized() to force updates.
Is there something, that I overlooked? Otherwise it would be great, if an internal ListenerList could be added to the ListBoxModel. It could act completely under the hood, no need to add a public ListBoxModel::Listener or something.
(I saw this old thread, but I think there are better solutions)
I have always wondered as well why there is no default fireHasChanged in ListBoxModel that ListBox would listen to by default using some kind of ListBoxModelListener
Usually I add ChangeBroadcaster to my ListBoxModel, but I still need to inherit ListBox to be a ChangeListener which calls updateContent(). Would be nice, if a ListBox could do that out of the box, since it already has a connection via setModel().
wondering where you send out the changeBroadcaster message from ListBoxModel in this? I am having trouble register listBoxItemClicked while using custom list items. i.e. If I define a custom listComponent through refreshComponentForRow the listBoxItemClicked function never executes.