[jboss-cvs] JBoss Profiler SVN: r533 - in branches/JBossProfiler2/src: main/www and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat May 16 12:09:43 EDT 2009


Author: jesper.pedersen
Date: 2009-05-16 12:09:42 -0400 (Sat, 16 May 2009)
New Revision: 533

Added:
   branches/JBossProfiler2/src/main/www/setup.xhtml
   branches/JBossProfiler2/src/main/www/template/menu.inc
Modified:
   branches/JBossProfiler2/src/etc/faces-config.xml
   branches/JBossProfiler2/src/etc/jbossprofiler.skin.properties
   branches/JBossProfiler2/src/etc/web.xml
   branches/JBossProfiler2/src/main/www/css/style.css
   branches/JBossProfiler2/src/main/www/index.xhtml
   branches/JBossProfiler2/src/main/www/template/template.xhtml
Log:
web: setup / skin work

Modified: branches/JBossProfiler2/src/etc/faces-config.xml
===================================================================
--- branches/JBossProfiler2/src/etc/faces-config.xml	2009-05-10 15:12:39 UTC (rev 532)
+++ branches/JBossProfiler2/src/etc/faces-config.xml	2009-05-16 16:09:42 UTC (rev 533)
@@ -100,4 +100,18 @@
     </navigation-case>
   </navigation-rule>
 
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>go_home</from-outcome>
+      <to-view-id>/index.xhtml</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>go_setup</from-outcome>
+      <to-view-id>/setup.xhtml</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+
 </faces-config>

Modified: branches/JBossProfiler2/src/etc/jbossprofiler.skin.properties
===================================================================
--- branches/JBossProfiler2/src/etc/jbossprofiler.skin.properties	2009-05-10 15:12:39 UTC (rev 532)
+++ branches/JBossProfiler2/src/etc/jbossprofiler.skin.properties	2009-05-16 16:09:42 UTC (rev 533)
@@ -1,49 +1,33 @@
-#Colors
-headerBackgroundColor=#FFFFFF
-headerGradientColor=#FFFFFF
-headerTextColor=#000000
-headerWeightFont=normal
-
+additionalBackgroundColor=#ECF4FE
+buttonFamilyFont="Trebuchet MS", sans-serif
+buttonSizeFont=10pt
+controlBackgroundColor=#FFFFFF
+controlTextColor=black
 generalBackgroundColor=#FFFFFF
-generalTextColor=#000000
-generalSizeFont=10pt
 generalFamilyFont="Trebuchet MS", sans-serif
-
-controlTextColor=#000000
-controlBackgroundColor=#ffffff
-additionalBackgroundColor=#F1EEE9
-
+generalLinkColor=#454545
+generalSizeFont=10pt
+generalTextColor=#000000
+headerBackgroundColor=#454545
+headerFamilyFont="Trebuchet MS", sans-serif
+headerGradientColor=#454545
+headerSizeFont=10pt
+headerTextColor=#FFFFFF
+hoverLinkColor=#454545
+panelBorderColor=#454545
+selectControlColor=#454545
 shadowBackgroundColor=#000000
 shadowOpacity=1
-
-panelBorderColor=#ffffff
-subBorderColor=#ffffff
-
-tabBackgroundColor=#a0a0a0
-tabDisabledTextColor=#b0b0b0
-
-trimColor=#FFFFFF
-
-tipBackgroundColor=\#FFFFFF 
-tipBorderColor=\#FFFFFF 
-
-selectControlColor=#a0a0a0
-
-generalLinkColor=#a0a0a0
-hoverLinkColor=#a0a0a0
-visitedLinkColor=#a0a0a0
-
-# Fonts
-headerSizeFont=10pt
-headerFamilyFont="Trebuchet MS", sans-serif
-
-tabSizeFont=10pt
+subBorderColor=#FFFFFF
+tabBackgroundColor=#454545
+tabDisabledTextColor=#454545
 tabFamilyFont="Trebuchet MS", sans-serif
-
-buttonSizeFont=10pt
-buttonFamilyFont="Trebuchet MS", sans-serif
-
+tabSizeFont=10pt
 tableBackgroundColor=#FFFFFF
-tableFooterBackgroundColor=#FFFFFF
+tableBorderColor=#454545
+tableFooterBackgroundColor=#454545
 tableSubfooterBackgroundColor=#FFFFFF
-tableBorderColor=#FFFFFF
+tipBackgroundColor=#EFF2F4
+tipBorderColor=#454545
+trimColor=#454545
+visitedLinkColor=#454545

Modified: branches/JBossProfiler2/src/etc/web.xml
===================================================================
--- branches/JBossProfiler2/src/etc/web.xml	2009-05-10 15:12:39 UTC (rev 532)
+++ branches/JBossProfiler2/src/etc/web.xml	2009-05-16 16:09:42 UTC (rev 533)
@@ -39,7 +39,7 @@
 
   <context-param>
     <param-name>org.richfaces.SKIN</param-name>
-    <param-value>blueSky</param-value>
+    <param-value>jbossprofiler</param-value>
   </context-param>
 
   <context-param>

Modified: branches/JBossProfiler2/src/main/www/css/style.css
===================================================================
--- branches/JBossProfiler2/src/main/www/css/style.css	2009-05-10 15:12:39 UTC (rev 532)
+++ branches/JBossProfiler2/src/main/www/css/style.css	2009-05-16 16:09:42 UTC (rev 533)
@@ -221,6 +221,31 @@
    ------------------------------------------------------------
 */
 
+.leftPanel a {
+  font-family : "Trebuchet MS", sans-serif;
+  font-size: 10pt;
+  font-weight : bold; 
+  text-align : left;
+  color : #454545;
+  background-color : #EFF2F4;
+}
+
+.leftPanel a:link {
+  color : #454545;
+  background-color : #EFF2F4;
+}
+
+.leftPanel a:visited {
+  color : #454545;
+  background-color : #EFF2F4; 
+}
+
+.leftPanel a:hover {
+  color : #454545;
+  background-color : #EFF2F4; 
+  text-decoration : underline;
+}
+
 .copyrightPanel a {
   font-family : "Trebuchet MS", sans-serif;
   font-size: 8pt;

Modified: branches/JBossProfiler2/src/main/www/index.xhtml
===================================================================
--- branches/JBossProfiler2/src/main/www/index.xhtml	2009-05-10 15:12:39 UTC (rev 532)
+++ branches/JBossProfiler2/src/main/www/index.xhtml	2009-05-16 16:09:42 UTC (rev 533)
@@ -11,7 +11,38 @@
   <ui:composition template="/template/template.xhtml">
     <ui:define name="mainContent">
 
-      Welcome
+      <h1>Welcome</h1>
+
+      This is the web frontend for JBoss Profiler 2.
+
+      <p/>
+
+      <h:form>
+
+        <h:panelGrid columns="3" width="100%">
+          <h:panelGrid columns="1" width="100%">
+            <h:commandLink value="Setup" action="go_setup"/>
+          </h:panelGrid>
+          <h:panelGrid columns="1" width="100%">
+            Profiler
+          </h:panelGrid>
+          <h:panelGrid columns="1" width="100%">
+            Snapshots
+          </h:panelGrid>
+          
+          <h:panelGrid columns="1" width="100%">
+            Classes
+          </h:panelGrid>
+          <h:panelGrid columns="1" width="100%">
+            Garbage Collection
+          </h:panelGrid>
+          <h:panelGrid columns="1" width="100%">
+            Load / Save
+          </h:panelGrid>
+          
+        </h:panelGrid>
+
+      </h:form>
       
     </ui:define>
   </ui:composition>

Added: branches/JBossProfiler2/src/main/www/setup.xhtml
===================================================================
--- branches/JBossProfiler2/src/main/www/setup.xhtml	                        (rev 0)
+++ branches/JBossProfiler2/src/main/www/setup.xhtml	2009-05-16 16:09:42 UTC (rev 533)
@@ -0,0 +1,67 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+      xmlns:jsp="http://java.sun.com/JSP/Page"
+      xmlns:f="http://java.sun.com/jsf/core"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:a4j="http://richfaces.org/a4j"
+      xmlns:rich="http://richfaces.org/rich">
+
+  <ui:composition template="/template/template.xhtml">
+    <ui:define name="mainContent">
+
+      <h1>Setup</h1>
+
+      <rich:panel>
+        <a4j:region id="connectRegion">
+          <a4j:form id="connectForm" ajaxSubmit="true" rendered="true"> 
+            <a4j:outputPanel layout="block">
+              <f:facet name="controls">
+                <h:panelGroup>
+                  <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
+                  <rich:componentControl for="connectPanel" attachTo="hidelink" operation="hide" event="onclick"/>
+                </h:panelGroup>
+              </f:facet>
+              <h:panelGroup>
+                <rich:panel>
+                  <f:facet name="header">
+                    <h:outputText value="Remote agent"/>
+                  </f:facet>
+
+                  <h:panelGrid columns="2" width="100%">
+                    <h:outputText value="Host"/>
+                    <h:inputText id="inputhost" value="#{basicOptBean.host}" size="20">
+                      <a4j:support event="onkeyup" rendered="inputhost"/>
+                    </h:inputText>
+        	  
+                    <h:outputText value="Protocol"/>
+                    <a4j:outputPanel id="protocolSelect" ajaxRendered="true">
+                      <h:selectOneMenu value="#{basicOptBean.protocol}" style="width: 200px" valueChangeListener="#{basicOptBean.protocolChanged}"
+                                       label="#{basicOptBean.protocol}">
+                        <a4j:support event="change" reRender="protocolSelect" />   
+                        <f:selectItems value="#{basicOptBean.protocols}" /> 			
+                      </h:selectOneMenu>
+                    </a4j:outputPanel>
+                        
+                    <h:outputText value="Port"/>
+                    <h:inputText id="portvalue" value="#{basicOptBean.port}" size="20">
+                      <f:validateLongRange minimum="1" maximum="65535"></f:validateLongRange>
+                    </h:inputText>
+
+                    <a4j:commandButton id="connectbutton" value="Verify setup" action="#{basicOptBean.connect}" onclick="this.disable=true">
+                      <rich:componentControl for="connectPanel" attachTo="connectbutton" operation="hide" event="onclick"/>
+                    </a4j:commandButton>
+                    <br/>
+
+		  </h:panelGrid>
+                </rich:panel>
+              </h:panelGroup>
+            </a4j:outputPanel>
+          </a4j:form>
+        </a4j:region>
+      </rich:panel>
+      
+    </ui:define>
+  </ui:composition>
+</html>

Added: branches/JBossProfiler2/src/main/www/template/menu.inc
===================================================================
--- branches/JBossProfiler2/src/main/www/template/menu.inc	                        (rev 0)
+++ branches/JBossProfiler2/src/main/www/template/menu.inc	2009-05-16 16:09:42 UTC (rev 533)
@@ -0,0 +1,20 @@
+<f:subview id="menu"
+           xmlns="http://www.w3.org/1999/xhtml"
+           xmlns:ui="http://java.sun.com/jsf/facelets"
+           xmlns:jsp="http://java.sun.com/JSP/Page"
+           xmlns:f="http://java.sun.com/jsf/core"
+           xmlns:h="http://java.sun.com/jsf/html"
+           xmlns:a4j="http://richfaces.org/a4j"
+           xmlns:rich="http://richfaces.org/rich">
+
+  <h:form>
+
+    <h:panelGrid columns="1" width="100%">
+
+      <h:commandLink value="Home" action="go_home"/>
+      <h:commandLink value="Setup" action="go_setup"/>
+
+    </h:panelGrid>
+
+  </h:form>
+</f:subview>

Modified: branches/JBossProfiler2/src/main/www/template/template.xhtml
===================================================================
--- branches/JBossProfiler2/src/main/www/template/template.xhtml	2009-05-10 15:12:39 UTC (rev 532)
+++ branches/JBossProfiler2/src/main/www/template/template.xhtml	2009-05-16 16:09:42 UTC (rev 533)
@@ -30,20 +30,16 @@
     <span style="font-size: 14pt;">JBoss Profiler 2</span>
   </td>
 </tr>
-<!--
-<tr>
-  <td colspan="2" class="menuPanel">
-  </td>
-</tr>
-<tr>
-  <td colspan="2" class="spacerPanel"></td>
-</tr>
--->
 
 <tr>
 <td class="leftPanel">
   <table width="100%">
     <tr>
+      <td>
+        <f:subview id="menuPanel">
+          <ui:include src="menu.inc"/>
+        </f:subview>
+      </td>
     </tr>
   </table>
 </td>




More information about the jboss-cvs-commits mailing list