<%--
* Licensed Materials - Property of Rogue Wave Software, Inc.
* © Copyright Rogue Wave Software, Inc. 2014, 2017
* © 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-8" pageEncoding="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="messages" var="msg" />
<html>
<head>
<title><h:outputText value="#{msg.frameworkTitle}"/></title>
<link href="data/style.css" rel="stylesheet" type="text/css"/>
<meta content="no-cache" http-equiv="Cache-Control"/>
<meta content="no-cache" http-equiv="Pragma"/>
<meta http-equiv="Content-Type" content="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="objSelect" invocationContext="IMAGE_SERVLET_CONTEXT" valueChangeListener="#{frameworkBean.selectObject}" />
<jvf:objectSelectRectInteractor id="objSelectRect" valueChangeListener="#{frameworkBean.selectRectObject}" />
<jvf:tooltipInteractor id="tooltipInteractor"/>
<jvf:highlightInteractor id="highlightInteractor"/>
<jv:cursorChangeInteractor id="cursorChangeInteractor" />
<jv:interactorGroup id="rect" interactors="objSelectRect highlightInteractor tooltipInteractor"/>
<jv:interactorGroup id="selectGroup" interactors="objSelect pan highlightInteractor tooltipInteractor cursorChangeInteractor"/>
<jv:interactorGroup id="panGroup" interactors="pan highlightInteractor tooltipInteractor"/>
<h:panelGrid columns="20" styleClass="border" bgcolor="#DCE6E9"
style="height:34px" columnClasses="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="text" style="font-weight:bold"/>
<h:selectOneMenu id="chooseIVL" styleClass="text"
valueChangeListener="#{frameworkBean.changeIvlFile}"
onchange="document.forms[0].submit()">
<f:selectItems value="#{frameworkBean.ivlSelectItems}" />
</h:selectOneMenu>
<h:outputText value=" | " escape="false"/>
<h:outputLink styleClass="link" value="srchtml/framework7.jsp.html" target="source" >
<h:outputText value="Show Source" styleClass="text" style="font-weight:bold"/>
</h:outputLink>
</h:panelGrid>
<h:panelGrid columns="2" styleClass="border" bgcolor="#DCE6E9">
<jvf:view id="viewID" binding="#{frameworkBean.facesView}"
interactorId="zoom" style="width:500px;height:500px"
view="#{frameworkBean.managerView}" messageBoxId="messages"
resizable="true" />
<h:panelGrid columns="1" border="0" bgcolor="#DCE6E9">
<jvf:overview id="overview" viewId="viewID"
style="width:100px;height:100px" messageBoxId="messages"
resizable="true" />
<jvf:panTool viewId="viewID" style="width:100;height:100" />
<jvf:zoomTool viewId="viewID" style="width:100;height:290" />
</h:panelGrid>
</h:panelGrid>
<jv:messageBox id="messages" styleClass="text"
style="width:500px;height:30px" />
<h:commandButton type="button" value="#{msg.setResizableTrue}"
onclick="viewID.setResizable(true);overview.setResizable(true);" />
<h:commandButton type="button" value="#{msg.setResizableFalse}"
onclick="viewID.setResizable(false);overview.setResizable(false);" />
<h:commandButton id="submit" value="#{msg.refreshLabel}"/>
</h:form>
</body>
</html>
</f:view>