labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r790981 - /labs/hupa/src/main/java/org/apache/hupa/client/view/MainView.java
Date Fri, 03 Jul 2009 18:31:23 GMT
Author: norman
Date: Fri Jul  3 18:31:23 2009
New Revision: 790981

URL: http://svn.apache.org/viewvc?rev=790981&view=rev
Log:
Fix rowstyle on selection

Modified:
    labs/hupa/src/main/java/org/apache/hupa/client/view/MainView.java

Modified: labs/hupa/src/main/java/org/apache/hupa/client/view/MainView.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/client/view/MainView.java?rev=790981&r1=790980&r2=790981&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/client/view/MainView.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/client/view/MainView.java Fri Jul  3 18:31:23
2009
@@ -82,7 +82,6 @@
 	private int rowsPerPage = 20;
 
 	private FlexTable mailTable = new FlexTable();
-	private int selectedRow = -1;
 	private DockPanel dockPanel = new DockPanel();
 	private Map<Integer, IMAPMessage> mMap = new HashMap<Integer, IMAPMessage>();
 	private IMAPFolder folder;
@@ -157,15 +156,7 @@
 
 				cell = mailTable.getCellForEvent(event);
 				if (cell.getRowIndex() > 0) {
-					if (selectedRow != -1) {
-						if ((selectedRow + 1) % 2 == 0) {
-							mailTable.getRowFormatter().setStyleName(
-									selectedRow, "hupa-Mailtable-row1");
-						} else {
-							mailTable.getRowFormatter().setStyleName(
-									selectedRow, "hupa-Mailtable-row2");
-						}
-					}
+				
 					if (cell.getCellIndex() == 0) {
 
 						/*
@@ -176,7 +167,6 @@
 					} else {
 						controller.call(new Event<MessageModelData, HupaAction>(HupaAction.EXPOSE_MESSAGE,new
MessageModelData(user,folder,getSelectedMessage()),masker));
 					}
-					selectedRow = cell.getRowIndex();
 				}
 
 			}



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


Mime
View raw message