<%-- 
 * 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-framework-faces.tld" prefix="jvf%>

<f:view>
<f:loadBundle basename="messagesvar="msg/>
<html>
<head>
<title><h:outputText value="#{msg.frameworkTitle}"/></title>
<link href="data/style.cssrel="stylesheettype="text/css"/>
<meta content="no-cachehttp-equiv="Cache-Control"/>
<meta content="no-cachehttp-equiv="Pragma"/>
<meta http-equiv="Content-Typecontent="text/html; charset=UTF-8/>
<style type="text/css">
  div#jviews_tooltip {
    color:#000; font-size:11px; line-height:1.2;
    background-color:#E1E5F1; border:1px solid #667295; padding:4px;}
</style>
</head>
<body bgcolor="white>

<h:form>

  <jvf:zoomInteractor id="zoom/>
  <jvf:panInteractor id="pan/>
  <jvf:objectSelectInteractor id="objSelectinvocationContext="IMAGE_SERVLET_CONTEXTvalueChangeListener="#{frameworkBean.selectObject}/>
  <jvf:objectSelectRectInteractor id="objSelectRectvalueChangeListener="#{frameworkBean.selectRectObject}/>
  <jvf:tooltipInteractor id="tooltipInteractor"/>
  <jvf:highlightInteractor id="highlightInteractor"/>
  <jv:cursorChangeInteractor id="cursorChangeInteractor/>        
  <jv:interactorGroup id="rectinteractors="objSelectRect highlightInteractor tooltipInteractor"/>
  <jv:interactorGroup id="selectGroupinteractors="objSelect pan highlightInteractor tooltipInteractor cursorChangeInteractor"/>
  <jv:interactorGroup id="panGroupinteractors="pan highlightInteractor tooltipInteractor"/>

  <h:panelGrid columns="20styleClass="borderbgcolor="#DCE6E9"
               style="height:34pxcolumnClasses="tdc">

    <jv:imageButton styleClass="button"         
                  onclick="viewID.setInteractor(selectGroup)"
                  image="images/arrow.gif"
                  buttonGroupId="interactors"
                  rolloverImage="images/arrowh.gif"
                  selectedImage="images/arrowd.gif"
                  title="Set Object Select  Interactor"  
                  message="Sets the object select  interactor."
                  messageBoxId="messages"/>

    <jv:imageButton styleClass="button"         
                  onclick="viewID.setInteractor(rect)"
                  buttonGroupId="interactors"
                  image="images/arrowrect.gif"
                  rolloverImage="images/arrowrecth.gif"
                  selectedImage="images/arrowrectd.gif"
                  title="Set Object Select Rect Interactor"  
                  message="Sets the object select rect interactor."
                  messageBoxId="messages"/>

    <jv:imageButton styleClass="button"         
                  selected="true"          
                  onclick="viewID.setInteractor(zoom)"
                  image="images/zoomrect.gif"
                  buttonGroupId="interactors"
                  rolloverImage="images/zoomrecth.gif"
                  selectedImage="images/zoomrectd.gif"
                  title="Set Zoom Interactor"  
                  message="Sets the zoom interactor."
                  messageBoxId="messages/>

    <jv:imageButton styleClass="button"                   
                  onclick="viewID.setInteractor(panGroup)"
                  image="images/pan.gif"
                  buttonGroupId="interactors"
                  rolloverImage="images/panh.gif"
                  selectedImage="images/pand.gif"  
                  title="Set Pan Interactor"
                  message="Sets the pan interactor."
                  messageBoxId="messages/>

    <jv:imageButton styleClass="button"                   
                  onclick="viewID.showAll()"
                  image="images/zoomfit.gif"
                  rolloverImage="images/zoomfith.gif"
                  selectedImage="images/zoomfitd.gif"  
                  title="Show All" 
                  messageBoxId="messages"
                  message="Zoom out the show the whole view."/>       
           
    <jv:imageButton styleClass="button"                   
                  onclick="viewID.zoomIn()"
                  image="images/zoom.gif"
                  rolloverImage="images/zoomh.gif"
                  selectedImage="images/zoomd.gif" 
                  title="Zoom In"
                  messageBoxId="messages"
                  message="Zooms the view in./>

    <jv:imageButton styleClass="button"                   
                  onclick="viewID.zoomOut()"
                  image="images/unzoom.gif"
                  rolloverImage="images/unzoomh.gif"
                  selectedImage="images/unzoomd.gif"  
                  title="Zoom Out" 
                  messageBoxId="messages"
                  message="Zooms the view out./>

    <h:outputText value=" | escape="false/>
    <h:outputText value="ivl file styleClass="textstyle="font-weight:bold"/>
    <h:selectOneMenu id="chooseIVLstyleClass="text"
                     valueChangeListener="#{frameworkBean.changeIvlFile}" 
                     onchange="document.forms[0].submit()">
      <f:selectItems value="#{frameworkBean.ivlSelectItems}/>
    </h:selectOneMenu>

    <h:outputText value=" | escape="false"/>

    <h:outputLink styleClass="linkvalue="srchtml/framework7.jsp.htmltarget="source>
      <h:outputText value="Show SourcestyleClass="textstyle="font-weight:bold"/>
    </h:outputLink>

  </h:panelGrid>

                <h:panelGrid columns="2styleClass="borderbgcolor="#DCE6E9">
                        <jvf:view id="viewIDbinding="#{frameworkBean.facesView}"
                                interactorId="zoomstyle="width:500px;height:500px"
                                view="#{frameworkBean.managerView}messageBoxId="messages"
                                resizable="true/>
                        <h:panelGrid columns="1border="0bgcolor="#DCE6E9">
                                <jvf:overview id="overviewviewId="viewID"
                                        style="width:100px;height:100pxmessageBoxId="messages"
                                        resizable="true/>
                                <jvf:panTool viewId="viewIDstyle="width:100;height:100/>
                                <jvf:zoomTool viewId="viewIDstyle="width:100;height:290/>
                        </h:panelGrid>
                </h:panelGrid>
                <jv:messageBox id="messages"  styleClass="text"
                 style="width:500px;height:30px/>

  <h:commandButton type="buttonvalue="#{msg.setResizableTrue}"
                          onclick="viewID.setResizable(true);overview.setResizable(true);/>
  <h:commandButton type="buttonvalue="#{msg.setResizableFalse}"
                                                  onclick="viewID.setResizable(false);overview.setResizable(false);/>

  <h:commandButton id="submitvalue="#{msg.refreshLabel}"/> 

</h:form>


</body>
</html>


</f:view>