tabBar.addTab(tab.get("html").isString().stringValue(), true);
tabBar.setTabEnabled(tabBar.getTabCount() - 1, tab.get("enabled").isBoolean().booleanValue());
}
int selectedTab = (int) jsonObj.get("selectedTab").isNumber().doubleValue();
if(selectedTab > -1)
tabBar.selectTab(selectedTab);
}
@Override
public void copyAttributes(Widget widgetSource, Widget widgetTarget){
super.copyAttributes(widgetSource, widgetTarget);
int widgetCount = ((VkTabBar)widgetSource).getTabCount();