class TabPanelWithDropdowns extends Composite {

    public void insertItem(final TabPanelEntry tab,
                           final int index) {

        registerTabHandlers(tab);
        insertTabAndContent(tab, index);
        resizeTabContent();
    }

}