thechiselgroup/biomixer — comment on commit d805c3536f0ac211f708f3e8a10fba5223564de2
File:  line 0
By lgrammel:

In situations like this one where you add a reference to a concrete class (DefaultView) in a more generic class (ListBoxControl), you would use the observer pattern to invert the dependencies. GWT does, as far as I know, not support firing events when the visibility of a widget changes. Thus, we would need to implement this (VisibilityChangeEvent, VisibilityChangeHandler) for the ListBoxControl. The DefaultView could then register a specific listener in the errorListBox control and would get notified when it becomes visible or gets hidden. That way, updateContentDisplaySize could remain private and ListBoxControl would not need to know about DefaultView.