<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"> <h:head/> <h:body> <ui:composition template="/templates/PagesTemplate.xhtml"> <ui:param name="unsavedModifications" value="false"/> <ui:param name="projectName" value="#{currentControllerBean.projectName}"/> <ui:param name="pagename" value="controller"/> <ui:param name="showProjectName" value="true"/> <ui:define name="metaData"> <f:metadata> <f:viewParam name="projectName" value="#{currentControllerBean.projectName}"/> </f:metadata> </ui:define> <ui:define name="bundleIncludes"> <f:loadBundle var="localizedControllerPageMessages" basename="lang.ControllerPage"/> </ui:define> <ui:define name="cssIncludes"> <link rel="stylesheet" type="text/css" href="${root}/css/ControllerPage.css" /> </ui:define> <!-- Those are the menu bar entries left from the help-submenu. --> <ui:define name="furtherMenuBarEntries"> <p:submenu label="#{localizedMessages.file}"> <p:menuitem styleClass="element-with-whitespace" icon="ui-icon-settings" value=" #{localizedMessages.settings}" onclick="settingsDlg.show()" ajax="true"/> <p:separator/> <p:menuitem styleClass="element-with-whitespace" icon="ui-icon-close" value=" #{localizedMessages.closeProject}" action="ProjectOverviewPage.xhtml?faces-redirect=true" ajax="false"/> </p:submenu> </ui:define> <ui:define name="centerContent"> <h:panelGrid columns="2" columnClasses="col1 , col2" cellpadding="5" style="width: 99%; height: 100%"> <p:panel style="width: 100%; height:100%" header="#{localizedControllerPageMessages.personalLog}" > <h:form id="currentViewLog" style="width: 100%"> <p:dataList value="#{currentControllerBean.viewLog}" var="logEntry"> #{logEntry} </p:dataList> </h:form> </p:panel> <p:panel style="width: 100%; height:100%" header="#{localizedControllerPageMessages.analysisControllerLog}" collapsed="true"> <h:form id="analysisControllerLog" style="width: 100%"> <p:dataList value="#{currentControllerBean.analysisLog}" var="logEntry"> #{logEntry} </p:dataList> </h:form> </p:panel> </h:panelGrid> </ui:define> <ui:define name="furtherLayoutUnits"> <p:layoutUnit position="south" header="#{localizedControllerPageMessages.control}" resizable="true" collapsible="true"> <h:form id="controllerForm"> <div align="center"> <h:panelGrid columns="4" cellpadding="15"> <p:commandButton value="#{localizedControllerPageMessages.analysisControllerInstantiateAnalysisController}" action="#{currentControllerBean.instantiateAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/> <p:commandButton value="#{localizedControllerPageMessages.analysisControllerCleaAnalysisController}" action="#{currentControllerBean.cleanAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/> <p:commandButton value="#{localizedControllerPageMessages.analysisControllerStartAnalysis}" action="#{currentControllerBean.startAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/> <p:commandButton value="#{localizedControllerPageMessages.analysisControllerStopAnalysis}" action="#{currentControllerBean.stopAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/> </h:panelGrid> <p:poll interval="1" update=":ledsForm :analysisControllerLog"/> </div> </h:form> </p:layoutUnit> <p:layoutUnit position="east" size="200" header="#{localizedMessages.state}" resizable="true" collapsible="true"> <div align="center"> <h:form id="ledsForm"> <h:panelGrid columns="2" cellpadding="15"> <h:graphicImage url="#{currentControllerBean.isAnalysisNotAvailable() ? '../img/LEDs/Icon_LED_Red.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/> <h:outputText value="#{localizedMessages.stateNA}"/> <h:graphicImage url="#{currentControllerBean.isAnalysisReady() ? '../img/LEDs/Icon_LED_Yellow.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/> <h:outputText value="#{localizedMessages.stateReady}"/> <h:graphicImage url="#{currentControllerBean.isAnalysisRunning() ? '../img/LEDs/Icon_LED_Green.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/> <h:outputText value="#{localizedMessages.stateRunning}"/> <h:graphicImage url="#{currentControllerBean.isAnalysisTerminated() ? '../img/LEDs/Icon_LED_Red.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/> <h:outputText value="#{localizedMessages.stateTerminated}"/> <h:graphicImage url="#{currentControllerBean.isAnalysisFailed() ? '../img/LEDs/Icon_LED_Red.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/> <h:outputText value="#{localizedMessages.stateFailed}"/> </h:panelGrid> </h:form> </div> </p:layoutUnit> </ui:define> </ui:composition> </h:body> </html>