Skip to content
Snippets Groups Projects
Commit 8fa7e144 authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Minor visual modification.

parent 5b32d381
No related branches found
No related tags found
No related merge requests found
...@@ -14,12 +14,18 @@ ...@@ -14,12 +14,18 @@
<script type="text/javascript" src="../js/js-graph-it.js"/> <script type="text/javascript" src="../js/js-graph-it.js"/>
<link rel="stylesheet" type="text/css" href="../css/js-graph-it.css"/> <link rel="stylesheet" type="text/css" href="../css/js-graph-it.css"/>
<style> <style>
.canvas {
font-family: tahoma;
}
.block { .block {
position: absolute; position: absolute;
} }
.connector { .connector {
background-color: #FF9900; background-color: #FF9900;
} }
.source-label, .middle-label, .destination-label {
padding: 5px;
}
</style> </style>
</h:head> </h:head>
...@@ -69,11 +75,11 @@ ...@@ -69,11 +75,11 @@
<p:layoutUnit position="center" id="centerLayout"> <p:layoutUnit position="center" id="centerLayout">
<h:form id="centerForm" style="height: 100%" rendered="#{not empty currentWorkSpaceProjectBean.project}"> <h:form id="centerForm" style="height: 100%" rendered="#{not empty currentWorkSpaceProjectBean.project}">
<div class="canvas" id="mainCanvas" style="width : 500px;height: 500px"> <div class="canvas" id="mainCanvas" style="width : 100%;height: 100%">
<ui:repeat value="#{currentWorkSpaceProjectBean.project.plugins}" var="plugin" varStatus="counter"> <ui:repeat value="#{currentWorkSpaceProjectBean.project.plugins}" var="plugin" varStatus="counter">
<p:remoteCommand name="setPlugin#{counter.index}" action="#{currentWorkSpaceProjectBean.setSelectedPlugin(plugin)}" update=":propertiesForm"/> <p:remoteCommand name="setPlugin#{counter.index}" action="#{currentWorkSpaceProjectBean.setSelectedPlugin(plugin)}" update=":propertiesForm"/>
<!-- Netbeans reports an error here, but the code does still work though... --> <!-- Netbeans reports an error here, but the code does still work though... -->
<div onclick="setPlugin#{counter.index}();" class="ui-panel ui-widget ui-widget-content ui-corner-all block draggable" id="#{stringToIDBean.stringToID(plugin)}" > <div onclick="setPlugin#{counter.index}();" style="left: #{counter.index * 90}px; top: #{counter.index * 70}px; position: absolute" class="ui-panel ui-widget ui-widget-content ui-corner-all block draggable" id="#{stringToIDBean.stringToID(plugin)}" >
<div class="ui-panel-titlebar ui-widget-header ui-corner-all"> <div class="ui-panel-titlebar ui-widget-header ui-corner-all">
<h:outputText style="font-weight: bold" value="#{plugin.getName()}"/> <h:outputText style="font-weight: bold" value="#{plugin.getName()}"/>
</div> </div>
...@@ -83,7 +89,7 @@ ...@@ -83,7 +89,7 @@
<ui:repeat value="#{currentWorkSpaceProjectBean.project.repositories}" var="repository" varStatus="counter"> <ui:repeat value="#{currentWorkSpaceProjectBean.project.repositories}" var="repository" varStatus="counter">
<p:remoteCommand name="setRepository#{counter.index}" action="#{currentWorkSpaceProjectBean.setSelectedRepository(repository)}" update=":propertiesForm"/> <p:remoteCommand name="setRepository#{counter.index}" action="#{currentWorkSpaceProjectBean.setSelectedRepository(repository)}" update=":propertiesForm"/>
<!-- Netbeans reports an error here, but the code does still work though... --> <!-- Netbeans reports an error here, but the code does still work though... -->
<div onclick="setRepository#{counter.index}();" class="ui-panel ui-widget ui-widget-content ui-corner-all block draggable" id="#{stringToIDBean.stringToID(repository)}" > <div onclick="setRepository#{counter.index}();" style="left: #{(currentWorkSpaceProjectBean.project.plugins.size() + counter.index) * 90}px; top: #{counter.index * 70}px; position: absolute" class="ui-panel ui-widget ui-widget-content ui-corner-all block draggable" id="#{stringToIDBean.stringToID(repository)}" >
<div class="ui-panel-titlebar ui-widget-header ui-corner-all"> <div class="ui-panel-titlebar ui-widget-header ui-corner-all">
<h:outputText style="font-weight: bold" value="#{repository.getName()}"/> <h:outputText style="font-weight: bold" value="#{repository.getName()}"/>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment