String getTabName(int index) { if (index >= 0 && index < tabs.length) { return tabs[index].name; } return defaultTabName; }