<%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006, 2011 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><%@ include file="../common/simpleheader.jsp" %><% if(designmode) { int TR = 0; int TD = 1; int innerElement = -1; String innerType = ""; String selBorderColor = "#aacc54"; List children = control.getChildren(); if(children.size() > 0) { ControlInstance childControl = (ControlInstance)children.get(0); if(childControl != null) { List components = childControl.getComponents(); if(components != null && components.size() > 0) { ComponentInstance firstChildComponent = components.get(0); innerType = firstChildComponent.getType(); if(innerType.equals("components")) { String layout = firstChildComponent.getProperty("layout"); if(layout.equals("horizontal")) innerElement=TD; else innerElement=TR; } } } } else { innerElement=TR; } String label = showallcontrols?control.getLocalizedType():""; String designerSelectedColorStr = ""; if(!designerSelectedColor.equals("")) designerSelectedColorStr="background-color:"+designerSelectedColor+";border:1px solid "+selBorderColor; if(component.needsRender()) { if(innerElement==TD) { %> > <%component.renderChildComponents();%> <% } else if(innerElement==TR || innerType.equals("section") || innerType.equals("tabgroup")) { %> > <%component.renderChildComponents();%> <% } else { %>
>
<%=label%>
<%component.renderChildComponents();%>
<% } } else { %> > el=document.getElementById("<%=id%>"); if(el) { if("<%=designerSelectedColor%>"!="") el.style.border="1px solid <%=selBorderColor%>"; else el.style.border=""; el.style.backgroundColor="<%=designerSelectedColor%>"; } el=document.getElementById("<%=id%>_label"); if(el) el.innerHTML="<%=label%>"; ]]> <% component.renderChildComponents(); } } else { component.renderChildComponents(); } %><%@ include file="../common/componentfooter.jsp" %>