<%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006, 2014 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><%@ include file="../common/componentheader.jsp" %><% %><%@page import="psdi.webclient.controls.Tab"%><% %><%@page import="psdi.webclient.controls.TabGroup"%><% if(component.needsRender() && component.isVisible()) { %><%@ include file="../common/exceptioncontainericon.jsp" %><% TabGroup tabGroup = ((TabGroup)control.getParentInstance()); String format = tabGroup.getProperty("format"); Tab currentTab = tabGroup.getCurrentTab(); String currentTabType = currentTab.getProperty("type"); boolean hideForFormat = (format.equalsIgnoreCase("carddeck") || (format.equalsIgnoreCase("navigation") && (currentTabType.equals("list") || control.getProperty("type").equals("list")))); if (!hideForFormat || designmode) { String labelcss = component.getProperty("labelcss"); if(designmode) { componentEvents+=" href=\"javascript: showWait(); parent.sendEvent('selecttab','designer','" + id + "');\""; } else { componentEvents=" onmouseover=\"return noStatus()\""; componentEvents+=" href=\"javascript: sendEvent('click','" + id + "','');\""; } String tabLabel = component.getProperty("label"); String tabnum = (String)session.getAttribute("RENDER_tabNum"); int tabNum = 0; if(tabnum != null) { tabNum = Integer.parseInt(tabnum); } String tabOnOff = "on"; String expandedTrueFalse = "true"; String tabIndex = "-1"; if(((Tab)control).isCurrent()) { tabOnOff = "on"; tabIndex = "0"; expandedTrueFalse = "true"; } else { tabOnOff = "off"; expandedTrueFalse = "false"; } if (designSelected && designmode) { tabOnOff += "sel"; } if(componentDisplay.equals("display:inline")) { componentDisplay=""; } String automationIdAnchor = ""; if(automation) { automationIdAnchor=" automationid=\""+realId+"_anchor\" "; } String tabImage = ""; String xmlImage = component.getProperty("image"); if(format.equalsIgnoreCase("wizard") || xmlImage.length()>0) { String image = xmlImage; if(format.equalsIgnoreCase("wizard")){ image = "wizard_step.gif"; } tabImage = ""; } %> <% tabNum++; session.setAttribute("RENDER_tabNum", tabNum + ""); } } %><%@ include file="../common/componentfooter.jsp" %>