private void removeTabClasses() { tabPanel.removeStyleName(Styles.TABBABLE); navTabs.removeStyleName(Styles.NAV); navTabs.removeStyleName(Styles.NAV_TABS); }
/** * Makes the tab panel look more or less prominent. * @param hasFocus if true, the tab panel will look more prominent. If false, the tab panel will look normal. */ public void setFocus(boolean hasFocus) { if (hasFocus) { tabBar.addStyleName(WorkbenchResources.INSTANCE.CSS().activeNavTabs()); } else { tabBar.removeStyleName(WorkbenchResources.INSTANCE.CSS().activeNavTabs()); } } }
/** * Makes the tab panel look more or less prominent. * @param hasFocus if true, the tab panel will look more prominent. If false, the tab panel will look normal. */ public void setFocus(boolean hasFocus) { if (hasFocus) { tabBar.addStyleName(WorkbenchResources.INSTANCE.CSS().activeNavTabs()); } else { tabBar.removeStyleName(WorkbenchResources.INSTANCE.CSS().activeNavTabs()); } } }