labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r794250 - in /labs/hupa: src/main/java/org/apache/hupa/client/mvp/ war/
Date Wed, 15 Jul 2009 12:35:13 GMT
Author: norman
Date: Wed Jul 15 12:35:13 2009
New Revision: 794250

URL: http://svn.apache.org/viewvc?rev=794250&view=rev
Log:
Some more css styling

Modified:
    labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
    labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
    labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageView.java
    labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java
    labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginView.java
    labs/hupa/src/main/java/org/apache/hupa/client/mvp/MainView.java
    labs/hupa/war/Hupa.css

Modified: labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java Wed Jul
15 12:35:13 2009
@@ -32,7 +32,6 @@
 import org.apache.hupa.shared.events.LoginEvent;
 import org.apache.hupa.shared.events.LoginEventHandler;
 
-import com.google.gwt.core.client.GWT;
 import com.google.gwt.gen2.table.event.client.HasPageLoadHandlers;
 import com.google.gwt.gen2.table.event.client.HasRowSelectionHandlers;
 import com.google.gwt.user.client.ui.HasWidgets;
@@ -92,8 +91,7 @@
 		display.getDataTableClick().addClickHandler(new ClickHandler<IMAPMessage>() {
 
 			public void onClick(ClickEvent<IMAPMessage> event) {
-				if (event.getCell() >=0) {
-					GWT.log("FIRE", null);
+				if (event.getCell() >=1) {
 					bus.fireEvent(new ExpandMessageEvent(user,folder,event.getRowValue()));
 				}
 			}

Modified: labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java Wed Jul 15
12:35:13 2009
@@ -168,12 +168,12 @@
 	
 		// This is only needed as workaround in pagingscrolltable
 		// See http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScrollTable
-		mailTable.setWidth(Window.getClientWidth() -150 -40+"px");
+		mailTable.setWidth(Window.getClientWidth() -150 -30+"px");
 		mailTable.setHeight("600px");
 		Window.addResizeHandler(new ResizeHandler() {
 
 			public void onResize(ResizeEvent event) {
-				mailTable.setWidth(Window.getClientWidth() -150 -40+"px");
+				mailTable.setWidth(Window.getClientWidth() -150 -30+"px");
 			}
 			
 		});
@@ -229,6 +229,7 @@
 		}
 		
 	}
+	
 	private TableDefinition<IMAPMessage> createTableDefinitation() {
 		DefaultTableDefinition<IMAPMessage> def = new DefaultTableDefinition<IMAPMessage>(createColumnDefinitionList());
 		
@@ -266,8 +267,8 @@
 			}
 			
 		});
-		quickMark.setMinimumColumnWidth(15);
-		quickMark.setPreferredColumnWidth(20);
+		quickMark.setMinimumColumnWidth(20);
+		quickMark.setPreferredColumnWidth(25);
 		quickMark.setMaximumColumnWidth(30);
 		cList.add(quickMark);
 		
@@ -282,7 +283,7 @@
 		SubjectColumnDefination subject =new SubjectColumnDefination();
 		subject.setColumnTruncatable(true);
 		subject.setPreferredColumnWidth(800);
-		subject.setMinimumColumnWidth(600);
+		subject.setMinimumColumnWidth(400);
 		subject.setMaximumColumnWidth(1000);
 		cList.add(subject);
 		

Modified: labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageView.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageView.java?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageView.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/mvp/IMAPMessageView.java Wed Jul 15 12:35:13
2009
@@ -64,6 +64,15 @@
 		detailGrid.setWidget(1, 1, to);
 		detailGrid.setWidget(2, 1, cc);
 		detailGrid.setWidget(3, 1, subject);
+		detailGrid.getCellFormatter().setStyleName(0,0,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(0,1,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(1,0,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(1,1,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(2,0,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(2,1,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(3,0,"hupa-IMAPMessageWidget-Header-Content");
+		detailGrid.getCellFormatter().setStyleName(3,1,"hupa-IMAPMessageWidget-Header-Content");
+
 		detailGrid.getCellFormatter().setVerticalAlignment(0, 0, VerticalPanel.ALIGN_TOP);
 		detailGrid.getCellFormatter().setVerticalAlignment(1, 0, VerticalPanel.ALIGN_TOP);
 		detailGrid.getCellFormatter().setVerticalAlignment(2, 0, VerticalPanel.ALIGN_TOP);

Modified: labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java Wed Jul 15 12:35:13
2009
@@ -31,8 +31,8 @@
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.HasClickHandlers;
-import com.google.gwt.event.dom.client.HasKeyUpHandlers;
 import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.Focusable;
 import com.google.gwt.user.client.ui.HasText;
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.HasWidgets;
@@ -46,9 +46,8 @@
 		public HasClickHandlers getLoginClick();
 		public HasClickHandlers getResetClick();
 		public HasValue<String> getUserNameValue();
-		public HasKeyUpHandlers getUserNameKeyUp();
-		public HasKeyUpHandlers getPasswordKeyUp();
 		public HasValue<String> getPasswordValue();
+		public Focusable getUserNameFocus();
 		public HasText getErrorText();
 	}
 	
@@ -114,6 +113,8 @@
 		display.getUserNameValue().setValue("");
 		display.getPasswordValue().setValue("");
 		display.getErrorText().setText("");
+		display.getUserNameFocus().setFocus(true);
+		
 	}
 
 	public void go(HasWidgets container) {

Modified: labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginView.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginView.java?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginView.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/mvp/LoginView.java Wed Jul 15 12:35:13
2009
@@ -26,12 +26,12 @@
 
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.event.dom.client.HasClickHandlers;
-import com.google.gwt.event.dom.client.HasKeyUpHandlers;
 import com.google.gwt.event.dom.client.KeyCodes;
 import com.google.gwt.event.dom.client.KeyUpEvent;
 import com.google.gwt.event.dom.client.KeyUpHandler;
 import com.google.gwt.user.client.ui.CheckBox;
 import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.Focusable;
 import com.google.gwt.user.client.ui.Grid;
 import com.google.gwt.user.client.ui.HasText;
 import com.google.gwt.user.client.ui.HasValue;
@@ -72,13 +72,21 @@
         formPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
         formPanel.setSpacing(5);
         Grid grid = new Grid(3, 2);
-
+        grid.setStyleName("hupa-LoginForm");
         grid.setText(0, 0, constants.usernameLabel());
         grid.setWidget(0, 1, usernameTextBox);
-
         grid.setText(1, 0, constants.passwordLabel());
         grid.setWidget(1, 1, passwordTextBox);
         grid.setWidget(2, 1, saveBox);
+        grid.getCellFormatter().setStyleName(0, 0, "hupa-LoginForm");
+        grid.getCellFormatter().setStyleName(0, 1, "hupa-LoginForm");
+        grid.getCellFormatter().setStyleName(1, 0, "hupa-LoginForm");
+        grid.getCellFormatter().setStyleName(1, 1, "hupa-LoginForm");
+        grid.getCellFormatter().setStyleName(1, 0, "hupa-LoginForm");
+        grid.getCellFormatter().setStyleName(2, 1, "hupa-LoginForm");
+        grid.getCellFormatter().setHorizontalAlignment(0,0, VerticalPanel.ALIGN_RIGHT);
+        grid.getCellFormatter().setHorizontalAlignment(1,0, VerticalPanel.ALIGN_RIGHT);
+
         usernameTextBox.addKeyUpHandler(this);
         usernameTextBox.setFocus(true);
         usernameTextBox.setWidth("150px");
@@ -138,49 +146,52 @@
     }
  
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.mvp.LoginPresenter.Display#getErrorText()
+     */
 	public HasText getErrorText() {
 		return errorLabel;
 	}
 
-
-
+	/*
+	 * (non-Javadoc)
+	 * @see org.apache.hupa.client.mvp.LoginPresenter.Display#getLoginClick()
+	 */
 	public HasClickHandlers getLoginClick() {
 		return loginButton;
 	}
 
-
-
+	/*
+	 * (non-Javadoc)
+	 * @see org.apache.hupa.client.mvp.LoginPresenter.Display#getPasswordValue()
+	 */
 	public HasValue<String> getPasswordValue() {
 		return passwordTextBox;
 	}
 
 
-
+	/*
+	 * (non-Javadoc)
+	 * @see org.apache.hupa.client.mvp.LoginPresenter.Display#getResetClick()
+	 */
 	public HasClickHandlers getResetClick() {
 		return resetButton;
 	}
 
-
-
+	/*
+	 * (non-Javadoc)
+	 * @see org.apache.hupa.client.mvp.LoginPresenter.Display#getUserNameValue()
+	 */
 	public HasValue<String> getUserNameValue() {
 		return usernameTextBox;
 	}
 
-
-	public HasValue<String> getErrorValue() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-
-	public HasKeyUpHandlers getPasswordKeyUp() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-
-	public HasKeyUpHandlers getUserNameKeyUp() {
-		// TODO Auto-generated method stub
-		return null;
+	/*
+	 * (non-Javadoc)
+	 * @see org.apache.hupa.client.mvp.LoginPresenter.Display#getUserNameFocus()
+	 */
+	public Focusable getUserNameFocus() {
+		return usernameTextBox;
 	}
 }

Modified: labs/hupa/src/main/java/org/apache/hupa/client/mvp/MainView.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/mvp/MainView.java?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/mvp/MainView.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/mvp/MainView.java Wed Jul 15 12:35:13 2009
@@ -141,6 +141,7 @@
 	private void createCenter() {
 		center = new RoundedPanel(RoundedPanel.ALL, 1);
 		center.setBorderColor("#C3D9FF");
+		center.setWidth("100%");
 		center.add(mListView);
 
 	}

Modified: labs/hupa/war/Hupa.css
URL: http://svn.apache.org/viewvc/labs/hupa/war/Hupa.css?rev=794250&r1=794249&r2=794250&view=diff
==============================================================================
--- labs/hupa/war/Hupa.css (original)
+++ labs/hupa/war/Hupa.css Wed Jul 15 12:35:13 2009
@@ -3,8 +3,20 @@
     background-color:	#E0ECFF;
 }
 
-.hupa-ErrorLabel {
+.cbg-Button, .gwt-HTML, .gwt-Tree .gwt-TreeItem, .gwt-SuggestBoxPopup .item, hupa-LoginForm,
.hupa-IMAPMessageWidget-Header-Content{ 
+    font-size:			12px;
+	font-family: 		Arial, Helvetica, sans-serif;
+}
+
+.hupa-LoginForm {
+	font-size:			10px;
+	font-family: 		Verdana;
+}
+
+.hupa-ErrorLabel, .gwt-PagingOptions .errorMessage {
     color:              #FF0000;
+    font-size:			12px;
+	font-family: 		Arial, Helvetica, sans-serif;
 }
 
 .hupa-MailTableControl {
@@ -46,17 +58,20 @@
 	text-align: 		left;
 	vertical-align: 	top;
 	padding: 			0px 10px 0px 10px;
-	font-size: 	        80%;
+	font-size:			12px;
+	font-family: 		Verdana;
 	cursor:             hand;
 }
 
 .gwt-ScrollTable .dataTable td {
-    border-color:      #silver;
-    border-style:      solid;
-    border-width:      1px 0px 0px 0px;
-    white-space:       nowrap;
-    padding:		   0px 10px 0px 10px;
-    overflow:          hidden;
+    border-color:      	#silver;
+    border-style:      	solid;
+    border-width:      	1px 0px 0px 0px;
+    white-space:       	nowrap;
+    padding:		   	0px 10px 0px 10px;
+    overflow:          	hidden;
+    font-size:			12px;
+	font-family: 		Arial, Helvetica, sans-serif;
 }
 
 
@@ -82,5 +97,5 @@
 
 .hupa-IMAPFolder-selected {
 	background:	      #E0ECFF;
-	width:			  120px;	
+	width:			  100%;	
 }
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message