81828384858687888990
}); } private void changeTab(ModeType oldType, ModeType newType) { ITab previousTab = tabs.get(oldType); previousTab.hide(); ITab newTab = tabs.get(newType); newTab.show(); }
110111112113114115116117
} } @Override public String getName() { ITab currentTab = getCurrentTab(); return currentTab == null ? "" : currentTab.getName(); }
116117118119120121122123
return currentTab == null ? "" : currentTab.getName(); } @Override public String getCssClass() { ITab currentTab = getCurrentTab(); return currentTab == null ? "hidden" : currentTab.getCssClass(); }
123124125126127128129130131132
} @Override public void hide() { beingShown = false; ITab currentTab = getCurrentTab(); if (currentTab != null) { currentTab.hide(); } }
131132133134135136137138139140141
} } @Override public void show() { ITab currentTab = getCurrentTab(); if (currentTab != null && !beingShown) { currentTab.show(); } beingShown = true; }