class TabPanelWithDropdowns extends Composite {

    void insertTabAndContent(final TabPanelEntry tab,
                             final int index) {

        final TabPanelEntry.DropDownTabListItem tabWidget = tab.getTabWidget();
        final TabPane tabContentPane = tab.getContentPane();

        getTabBar().insert(tab.getTabWidget(), index);

        getAllContentTabs().add(tab);
        getTabContent().add(tabContentPane);
        getActivatableWidgets().add(tabWidget);
    }

}