Newer
Older
<?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"
Nils Christian Ehmke
committed
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
Nils Christian Ehmke
committed
<h:head/>
Nils Christian Ehmke
committed
<h:body>
Nils Christian Ehmke
committed
<ui:composition template="/templates/PagesTemplate.xhtml">
Nils Christian Ehmke
committed
<ui:param name="unsavedModifications" value="false"/>
Nils Christian Ehmke
committed
<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>
Nils Christian Ehmke
committed
<!-- 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>
</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>
</p:panel>
</h:panelGrid>
Nils Christian Ehmke
committed
</ui:define>
<ui:define name="furtherLayoutUnits">
<p:layoutUnit position="south" header="#{localizedControllerPageMessages.control}" resizable="true" collapsible="true">
Nils Christian Ehmke
committed
Nils Christian Ehmke
committed
<h:form id="controllerForm">
<div align="center">
Nils Christian Ehmke
committed
<h:panelGrid columns="4" cellpadding="15">
<p:commandButton value="#{localizedControllerPageMessages.analysisControllerInstantiateAnalysisController}" action="#{currentControllerBean.instantiateAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/>
Nils Christian Ehmke
committed
<p:commandButton value="#{localizedControllerPageMessages.analysisControllerCleaAnalysisController}" action="#{currentControllerBean.cleanAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/>
Nils Christian Ehmke
committed
<p:commandButton value="#{localizedControllerPageMessages.analysisControllerStartAnalysis}" action="#{currentControllerBean.startAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/>
Nils Christian Ehmke
committed
<p:commandButton value="#{localizedControllerPageMessages.analysisControllerStopAnalysis}" action="#{currentControllerBean.stopAnalysis()}" update=":messages :currentViewLog" disabled="#{empty currentControllerBean.projectName}"/>
Nils Christian Ehmke
committed
</h:panelGrid>
<p:poll interval="1" update=":ledsForm :analysisControllerLog"/>
Nils Christian Ehmke
committed
</div>
Nils Christian Ehmke
committed
</h:form>
</p:layoutUnit>
<p:layoutUnit position="east" size="200" header="#{localizedMessages.state}" resizable="true" collapsible="true">
Nils Christian Ehmke
committed
<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}"/>
Nils Christian Ehmke
committed
<h:graphicImage url="#{currentControllerBean.isAnalysisReady() ? '../img/LEDs/Icon_LED_Yellow.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/>
<h:outputText value="#{localizedMessages.stateReady}"/>
Nils Christian Ehmke
committed
Nils Christian Ehmke
committed
<h:graphicImage url="#{currentControllerBean.isAnalysisRunning() ? '../img/LEDs/Icon_LED_Green.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/>
<h:outputText value="#{localizedMessages.stateRunning}"/>
Nils Christian Ehmke
committed
<h:graphicImage url="#{currentControllerBean.isAnalysisTerminated() ? '../img/LEDs/Icon_LED_Red.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/>
<h:outputText value="#{localizedMessages.stateTerminated}"/>
Nils Christian Ehmke
committed
<h:graphicImage url="#{currentControllerBean.isAnalysisFailed() ? '../img/LEDs/Icon_LED_Red.png' : '../img/LEDs/Icon_LED_Gray.png'}" height="50px"/>
<h:outputText value="#{localizedMessages.stateFailed}"/>
Nils Christian Ehmke
committed
</h:panelGrid>
</h:form>
</div>
Nils Christian Ehmke
committed
</p:layoutUnit>
</ui:define>
</ui:composition>
</h:body>
</html>