For some reason that I’m unable to determine, this getTooltipForRow is never called. Have I done something stupid or is there a reason why FileListComponent will not grab the tooltip?
Apart from the missing tooltips everything works as expected with this sub-class.
edit: For reasons I can’t figure out, ListBox::RowComponent::getTooltip is never called for a FileListComponent, this seems strange, but at least explains how getTooltipForRow is never called, but I’m still flummoxed about why.
I’ve also used getTooltipForRow in other ListBoxModel successfully too. Decided the pragmatic approach was just to copy-pasta FileListComponent into my codebase and then I updated FileListComponent::ItemComponent to inherit SettableTooltipClient and set the tooltip in the update method, which works but is a lot more painful than what I thought should have been possible with a simple sub-class.
FileListComponent is inheriting ListBoxModel and ListBox, the ListBox is initialised with an empty String and this for its ListBoxModel from the FileListComponent, so I suppose that might be why my sub-class would not work, but I even tried implementing getTooltipForRow in FileListComponent and was never called, as mentioned in my “edit” above, the ListBox::RowComponent::getTooltip method is never even called, so it wouldn’t get a chance to interrogate the model anyway.
It’s not at all important, but I’d love to understand why this is all happening, as I was unable to determine it for myself.