Added the concept of a focusedElement to the CollapsiblePanel class,
so that when the panel is expanded or focussed it can automatically
move the focus to this element.