if (child instanceof Tab && child.isRendered()) { Tab tab = (Tab) child; String title = tab.getTitle(); UIComponent titleFacet = tab.getFacet("title"); boolean active = (!currentFound) && (currentStep == null || tab.getId().equals(currentStep));
String title = tab.getTitle(); boolean active = (i == activeIndex); String headerClass = (active) ? Ribbon.ACTIVE_TAB_HEADER_CLASS : Ribbon.INACTIVE_TAB_HEADER_CLASS;
writer.writeAttribute("href", "#" + tab.getClientId(context), null); if (titleFacet == null) { writer.write(tab.getTitle());
: AccordionPanel.INACTIVE_TAB_CONTENT_CLASS; UIComponent titleFacet = tab.getFacet("title"); String title = tab.getTitle(); String tabindex = tab.isDisabled() ? "-1" : accordionPanel.getTabindex();
tabSet.addCloseClickHandler(new com.smartgwt.client.widgets.tab.events.CloseClickHandler() { @Override public void onCloseClick(TabCloseClickEvent event) { event.cancel(); final Tab tab = event.getTab(); SC.confirm("Are you sure? You want to delete " + tab.getTitle()+" tab.", new BooleanCallback() { @Override public void execute(Boolean value) { if (value != null && value) { tabSet.removeTab(tab); } } }); } });
writer.writeAttribute("tabindex", "-1", null); if (titleFacet == null) { String tabTitle = tab.getTitle(); if (tabTitle != null) { writer.writeText(tabTitle, null);
public void onChangeTab(TabChangeEvent event){ Tab activeTab = event.getTab(); if(!activeTab.getTitle().endsWith("[Pressed]")){ activeTab.setTitle(activeTab.getTitle() + " [Pressed]"); } System.out.println(activeTab.getTitle()); counter = counter + 1; RequestContext.getCurrentInstance().update("panel"); }
if (child instanceof Tab && child.isRendered()) { Tab tab = (Tab) child; String title = tab.getTitle(); UIComponent titleFacet = tab.getFacet("title"); boolean active = (!currentFound) && (currentStep == null || tab.getId().equals(currentStep));
String title = tab.getTitle(); boolean active = (i == activeIndex); String headerClass = (active) ? Ribbon.ACTIVE_TAB_HEADER_CLASS : Ribbon.INACTIVE_TAB_HEADER_CLASS;
writer.writeAttribute("class", iconClass, null); if (titleFacet == null) { writer.write(tab.getTitle());
: AccordionPanel.INACTIVE_TAB_CONTENT_CLASS; UIComponent titleFacet = tab.getFacet("title"); String title = tab.getTitle(); String tabindex = tab.isDisabled() ? "-1" : accordionPanel.getTabindex();
writer.writeAttribute("tabindex", "-1", null); if (titleFacet == null) { String tabTitle = tab.getTitle(); if (tabTitle != null) { writer.write(tabTitle);