juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r756710 - in /webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main: java/org/apache/juddi/portlets/ java/org/apache/juddi/portlets/client/ java/org/apache/juddi/portlets/public/ java/org/apache/juddi/portlets/server/ web...
Date Fri, 20 Mar 2009 18:56:45 GMT
Author: kstam
Date: Fri Mar 20 18:56:44 2009
New Revision: 756710

URL: http://svn.apache.org/viewvc?rev=756710&view=rev
Log:
JUDDI-201 adding support for css portlet styling.

Modified:
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/Application.gwt.xml
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/Application.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/Application.html
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/webapp/WEB-INF/portlet.xml

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/Application.gwt.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/Application.gwt.xml?rev=756710&r1=756709&r2=756710&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/Application.gwt.xml
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/Application.gwt.xml
Fri Mar 20 18:56:44 2009
@@ -3,14 +3,11 @@
       <!-- Inherit the core Web Toolkit stuff.                        -->
       <inherits name="com.google.gwt.user.User"/>   	
     
-      <!--  inherit css based theme -->
-      <inherits name="com.google.gwt.user.theme.standard.Standard"/>
-
       <!-- Specify the app entry point class.                         -->
       <entry-point class="org.apache.juddi.portlets.client.Application"/>
     
       <!-- Specify the application specific style sheet.              -->
-      <stylesheet src="Application.css"/>
+      <stylesheet src="uddiportlets.css"/>
 	
 	  <servlet class="org.apache.juddi.portlets.server.SecurityServiceImpl" path="/security"/>
 	  <servlet class="org.apache.juddi.portlets.server.InquiryServiceImpl" path="/inquiry"/>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/Application.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/Application.java?rev=756710&r1=756709&r2=756710&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/Application.java
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/Application.java
Fri Mar 20 18:56:44 2009
@@ -27,6 +27,7 @@
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.FlowPanel;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.PasswordTextBox;
 import com.google.gwt.user.client.ui.RootPanel;
@@ -43,7 +44,7 @@
 
 	Label tokenLabel = new Label("");
 	Label tmodelLabel = new Label("");
-	private VerticalPanel loginPanel = new VerticalPanel();
+	private FlowPanel loginPanel = new FlowPanel();
 	private VerticalPanel browsePanel = new VerticalPanel();
 	private Button getTokenButton = new Button("Login");
 	private Button getTModelButton = new Button("getTModel");
@@ -57,20 +58,32 @@
 	 * This is the entry point method.
 	 */
 	public void onModuleLoad() { 
-
-		loginPanel.add(new Label ("Publisher:"));
+		loginPanel.getElement().setId("browser-body");
+		Label publisher = new Label ("Publisher:");
+		publisher.setStyleName("portlet-form-field-label");
+		loginPanel.add(publisher);
+		usernameBox.setStyleName("portlet-form-input-field");
 		loginPanel.add(usernameBox);
-		loginPanel.add(new Label ("Password:"));
+		Label password = new Label ("Password:");
+		password.setStyleName("portlet-form-field-label");
+		loginPanel.add(password);
+		passwordBox.setStyleName("portlet-form-input-field");
 		loginPanel.add(passwordBox);
 		getTokenButton.addClickListener(this);
+		getTokenButton.setStyleName(("portlet-form-button"));
 		loginPanel.add(getTokenButton);
 		
 		RootPanel.get("browser").add(loginPanel);
 		
 		getTModelButton.addClickListener(this);
-		browsePanel.add(new Label ("TModel Key:"));
+		Label tmodel = new Label ("TModel Key:");
+		tmodel.setStyleName("portlet-form-field-label");
+		browsePanel.add(tmodel);
+		tmodelKeyBox.setStyleName("portlet-form-input-field");
 		browsePanel.add(tmodelKeyBox);
+		getTModelButton.setStyleName(("portlet-form-button"));
 		browsePanel.add(getTModelButton);
+		tmodelLabel.setStyleName("portlet-form-field-label");
 		browsePanel.add(tmodelLabel);
 		
 		RootPanel.get("token").add(tokenLabel);
@@ -124,7 +137,6 @@
 				if (response.isSuccess) {
 					Map<String,String> tModelMap= response.getResponse();
 					tmodelLabel.setText("tmodelMap: " + tModelMap);
-					//RootPanel.setVisible(loginPanel, false);
 				} else {
 					tmodelLabel.setText("error: " + response.getMessage());
 				}

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/Application.html
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/Application.html?rev=756710&r1=756709&r2=756710&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/Application.html
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/Application.html
Fri Mar 20 18:56:44 2009
@@ -28,9 +28,7 @@
     <script type="text/javascript" language="javascript" src="org.apache.juddi.portlets.Application.nocache.js"></script>
   </head>
   <body>
-    <!-- OPTIONAL: include this if you want history support -->
-    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
-    <p><div id="token"></div></p>
-    <p><div id="browser"></div></p>
+    <div id="token"></div>
+    <div id="browser"></div>
   </body>
 </html>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java?rev=756710&r1=756709&r2=756710&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java
Fri Mar 20 18:56:44 2009
@@ -20,7 +20,8 @@
 	  writer.println("<script type='text/javascript' language='javascript' src='" 
 			  + renderRequest.getContextPath() 
 			  + "/org.apache.juddi.portlets.Application/org.apache.juddi.portlets.Application.nocache.js'></script>");
-	  writer.println("<div id='login'></div>");
+	  writer.println("<div id=\"token\"></div>");
+	  writer.println("<div id=\"browser\"></div>");
 	  writer.close();
 	}
 

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/webapp/WEB-INF/portlet.xml?rev=756710&r1=756709&r2=756710&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/webapp/WEB-INF/portlet.xml
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/webapp/WEB-INF/portlet.xml
Fri Mar 20 18:56:44 2009
@@ -1,4 +1,4 @@
-<portlet-app
+<portlet-app id="browser-container"
     xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
     version="1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message