public NavTabs() { addStyleName(Styles.NAV_TABS); } }
public void setNavStyle(String styleName) { navTabs.addStyleName(styleName); }
public NavTabs() { addStyleName(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()); } } }
@Override public void init() { super.init(); this.addShowHandler(new TabShowHandler() { @Override public void onShow(TabShowEvent e) { onResize(); final TabPanelEntry tabPanelEntry = MultiPageEditorViewImpl.this.findEntryForTabWidget(e.getTab()); final PageViewImpl page = (PageViewImpl) tabPanelEntry.getContentPane().getWidget(0); page.onFocus(); } }); this.addShownHandler(new TabShownHandler() { @Override public void onShown(TabShownEvent e) { onResize(); final TabPanelEntry tabPanelEntry = MultiPageEditorViewImpl.this.findEntryForTabWidget(e.getTab()); final PageViewImpl page = (PageViewImpl) tabPanelEntry.getContentPane().getWidget(0); page.onLostFocus(); } }); this.tabBar.addStyleName("nav-tabs-pf"); this.addStyleName("uf-multi-page-editor"); }
@Override public void init() { super.init(); this.addShowHandler(new TabShowHandler() { @Override public void onShow(TabShowEvent e) { onResize(); final TabPanelEntry tabPanelEntry = MultiPageEditorViewImpl.this.findEntryForTabWidget(e.getTab()); final PageViewImpl page = (PageViewImpl) tabPanelEntry.getContentPane().getWidget(0); page.onFocus(); } }); this.addShownHandler(new TabShownHandler() { @Override public void onShown(TabShownEvent e) { onResize(); final TabPanelEntry tabPanelEntry = MultiPageEditorViewImpl.this.findEntryForTabWidget(e.getTab()); final PageViewImpl page = (PageViewImpl) tabPanelEntry.getContentPane().getWidget(0); page.onLostFocus(); } }); this.tabBar.addStyleName("nav-tabs-pf"); this.addStyleName("uf-multi-page-editor"); }