%--
* 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" %>
<%!
/**
Returns the html necessary to generate a button to be used as the back to list page button
*/
public String getButtonHtml(String id, WebClientSession wcs, boolean designmode)
{
String onclick = "javascript:sendEvent('gotolisttab','"+id+"','')";
if(designmode)
{
onclick="return false;";
}
String text = wcs.getMessage("ui", "backtolisttab");
String events = "";
if(!designmode) {
events = "onmouseover=\"appendClass(this, 'bchover')\" onmouseout=\"removeClass(this, 'bchover')\" onkeydown=\"if(hasKeyCode(event,'KEYCODE_SPACEBAR|KEYCODE_ENTER')){stopBubble(event);"+onclick+";return true;}\" onclick=\""+onclick+"\"";
}
return "
";
}
/**
Returns any additional properties that are necessary on the button section on the breadcrumb line
*/
public String getAdditionalBreadcrumbProperty()
{
return "style=\"padding-bottom:2px\"";
}
%>
<%
String format = component.getProperty("format");
TabGroup tabGroup = ((TabGroup)control);
Tab currentTab = tabGroup.getCurrentTab();
boolean hideForFormat = (format.equalsIgnoreCase("navigation") && currentTab != null && currentTab.getProperty("type").equals("list") && !designmode);
String breadCrumbs = "";
String buttons = "";
if(format!=null && format.equalsIgnoreCase("navigation")) {
buttons = getButtonHtml(id, wcs, designmode);
}
if(!hideForFormat)
{
if(component.needsRender() && (!format.equalsIgnoreCase("carddeck") || (designmode)))
{
String style = component.getProperty("style");
if(!style.equalsIgnoreCase("form"))
{
cssclass="sub"+cssclass;
}
String innerClass = "tabgroup";
if(format.equalsIgnoreCase("wizard"))
{
innerClass+="w";
} %>
style="padding: 5px 5px 0px 5px;"<%}%>>
<% if(!hideForFormat || (designmode))
{
String opaque = "";
String cursor = "cursor: pointer;";
if(designmode) {
opaque = " opacity_55";
cursor="cursor: default;";
}
String textFloat = WebClientRuntime.getWebClientSystemProperty("webclient.tabBreadCrumbsFloat");
if(!WebClientRuntime.isNull(textFloat))
{
textFloat = "float: " + textFloat + ";";
}
String flex = "";
//Default for main pages is true. Default for dialogs is false
if(!component.getBoolean("wrap") || (component.getProperty("wrap").length()==0 && control.getPage() != wcs.getCurrentApp().getPageStack().firstElement())){
flex = " flex";
}
if(format.equalsIgnoreCase("navigation")) { %>
| ><%=buttons%> | <%=breadCrumbs%> |
<%}%>
<%
}
}
component.renderChildrenControls();
if(component.needsRender() && (!format.equalsIgnoreCase("carddeck") || designmode))
{
%>
|
<% }
if(!component.needsRender())
{ %>
ignrdispstyle="true">]]>
<% }
} %><%@ include file="../common/componentfooter.jsp" %>