<%-- 
 * Licensed Materials - Property of Perforce Software, Inc.
 * © Copyright Perforce Software, Inc. 2014, 2018
 * © Copyright IBM Corp. 2009, 2014
 * © Copyright ILOG 1996, 2009
 * All Rights Reserved.
 *
 * Note to U.S. Government Users Restricted Rights:
 * The Software and Documentation were developed at private expense and
 * are "Commercial Items" as that term is defined at 48 CFR 2.101,
 * consisting of "Commercial Computer Software" and
 * "Commercial Computer Software Documentation", as such terms are
 * used in 48 CFR 12.212 or 48 CFR 227.7202-1 through 227.7202-4,
 * as applicable.
 --%>
<%@ page contentType="text/html;charset=UTF-8pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsf/core"   prefix="f%>
<%@ taglib uri="http://java.sun.com/jsf/html"   prefix="h%>
<%@ taglib uri="http://www.ilog.com/jviews/tlds/jviews-faces.tld" prefix="jv%>
<%@ taglib uri="http://www.ilog.com/jviews/tlds/jviews-gantt-faces.tld" prefix="jvgf%>


<f:view>
<f:loadBundle basename="messagesvar="msg/>
<html>
  <head>
    <title><h:outputText value="#{msg.code10Title}"/></title>
    <meta content="no-cachehttp-equiv="Cache-Control"/>
    <meta content="no-cachehttp-equiv="Pragma"/>
    <meta http-equiv="Content-Typecontent="text/html; charset=UTF-8/>
    <link href="data/style.cssrel="stylesheettype="text/css"/>
  </head>
  <body>

    <H1><h:outputText value="#{msg.code10H1}"/></H1>

    <p><h:outputText value="#{msg.code10P1}"/></p>
    <p>
      <h:outputText value="#{msg.code10P2}"/>
      <ul>
        <li><h:outputText value="#{msg.code10li1}"/></li>
        <li><h:outputText value="#{msg.code10li2}"/></li>
      </ul>
    </p>


      <h:form>

        <jvgf:rowExpandCollapseInteractor id="tableExpand/>
        <jvgf:rowExpandCollapseInteractor id="sheetExpand/>

        <jvgf:sheetScrollInteractor id="sheetScroll/>
        <jvgf:tableScrollInteractor id="tableScroll/>


        <h:panelGrid
          columns="5"
          style="height:34px"
          border="0">

          <jv:imageButton
            styleClass="button20"
            onclick="gantt.setInteractors(tableExpand, sheetExpand)"
            image="data/images/arrowpm.gif"
            selected="true"
            buttonGroupId="interactors"
            message="#{msg.code10Expand}/>
          <jv:imageButton
            styleClass="button22"
            onclick="gantt.setInteractors(tableScroll, sheetScroll)"
            image="data/images/pan.gif"
            buttonGroupId="interactors"
            message="#{msg.code10pan}/>
          <jv:imageButton
            styleClass="button22"
            onclick="gantt.zoomToFit()"
            image="data/images/zoomfit.gif"
            message="#{msg.code10showAll}/>
          <jv:imageButton
            styleClass="button22"
            onclick="gantt.zoomIn()"
            image="data/images/zoom.gif"
            message="#{msg.code10zoomIn}/>
          <jv:imageButton
            styleClass="button22"
            onclick="gantt.zoomOut()"
            image="data/images/unzoom.gif"
            message="#{msg.code10zoomOut}/>

        </h:panelGrid>


        <jvgf:ganttView
          id="gantt"
          chart="#{ganttBean.gantt}"
          style="width:800px;height:300px"
          tableInteractorId="tableExpand"
          sheetInteractorId="sheetExpand">

          <jvgf:ganttContextualMenu>

            <jv:menu label="root">
              <jv:menuItem
                label="#{msg.code10ZoomInLabel}"
                onclick="gantt.zoomIn()"
                image="data/images/zoom.gif/>
              <jv:menuItem
                label="#{msg.code10ZoomOutLabel}"
                onclick="gantt.zoomOut()"
                image="data/images/unzoom.gif/>
              <jv:menuItem
                label="#{msg.code10ZoomToFitLabel}"
                onclick="gantt.zoomToFit()"
                image="data/images/zoomfit.gif/>
              <jv:menuSeparator />
              <jv:menuItem
                label="#{msg.code10ExpandLabel}"
                actionListener="#{ganttBean.expandAllRows}"
                image="data/images/arrow.gif"
                invocationContext="IMAGE_SERVLET_CONTEXT/>
            </jv:menu>
          </jvgf:ganttContextualMenu>

        </jvgf:ganttView>

      </h:form>
  </body>
</html>
</f:view>