}
@Override
public void onConnectorHierarchyChange(
ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) {
Widget newFooterWidget = null;
ComponentConnector footer = getFooter();
if (footer != null) {
newFooterWidget = footer.getWidget();
Widget currentFooter = getWidget().footer;
if (currentFooter != null) {
// Remove old listener
getLayoutManager().removeElementResizeListener(
currentFooter.getElement(), footerResizeListener);
}
getLayoutManager().addElementResizeListener(
newFooterWidget.getElement(), footerResizeListener);
}
getWidget().setFooterWidget(newFooterWidget);
Widget newLayoutWidget = null;
ComponentConnector newLayout = getLayout();
if (newLayout != null) {
newLayoutWidget = newLayout.getWidget();
}
getWidget().setLayoutWidget(newLayoutWidget);