james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r1522388 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ToolBarActivity.java ui/MessageListFooterView.java ui/MessagesCellTable.java
Date Thu, 12 Sep 2013 04:45:51 GMT
Author: dongxu
Date: Thu Sep 12 04:45:51 2013
New Revision: 1522388

URL: http://svn.apache.org/r1522388
Log:
fixed issue#68, make pager work as expected

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ToolBarActivity.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageListFooterView.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessagesCellTable.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ToolBarActivity.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ToolBarActivity.java?rev=1522388&r1=1522387&r2=1522388&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ToolBarActivity.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ToolBarActivity.java
Thu Sep 12 04:45:51 2013
@@ -49,6 +49,7 @@ import org.apache.hupa.client.place.Fold
 import org.apache.hupa.client.rf.SetFlagRequest;
 import org.apache.hupa.client.ui.MessagesCellTable;
 import org.apache.hupa.client.ui.ToolBarView.Parameters;
+<<<<<<< HEAD
 import org.apache.hupa.shared.data.MessageImpl.IMAPFlag;
 import org.apache.hupa.shared.domain.GenericResult;
 import org.apache.hupa.shared.domain.ImapFolder;
@@ -186,6 +187,8 @@ import org.apache.hupa.client.ui.ToolBar
 import org.apache.hupa.client.ui.WidgetDisplayable;
 =======
 >>>>>>> replace with IsWidget
+=======
+>>>>>>> fixed issue#68, make pager work as expected
 import org.apache.hupa.shared.data.MessageImpl.IMAPFlag;
 import org.apache.hupa.shared.domain.GenericResult;
 import org.apache.hupa.shared.domain.ImapFolder;

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageListFooterView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageListFooterView.java?rev=1522388&r1=1522387&r2=1522388&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageListFooterView.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageListFooterView.java
Thu Sep 12 04:45:51 2013
@@ -142,7 +142,7 @@ public class MessageListFooterView exten
 		SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
 		simplePager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true);
 		simplePager.setDisplay(table);
-		simplePager.startLoading();
+//		simplePager.setRangeLimited(false);
 		initWidget(binder.createAndBindUi(this));
 	}
 

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessagesCellTable.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessagesCellTable.java?rev=1522388&r1=1522387&r2=1522388&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessagesCellTable.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessagesCellTable.java
Thu Sep 12 04:45:51 2013
@@ -603,18 +603,20 @@ public class MessagesCellTable extends D
 			FetchMessagesRequest req = rf.messagesRequest();
 			FetchMessagesAction action = req.create(FetchMessagesAction.class);
 			final ImapFolder f = req.create(ImapFolder.class);
+            final int start = display.getVisibleRange().getStart();
 			f.setFullName(parseFolderName(pc));
 			action.setFolder(f);
 			action.setOffset(display.getVisibleRange().getLength());
 			action.setSearchString(searchValue);
-			action.setStart(display.getVisibleRange().getStart());
+			action.setStart(start);
 			req.fetch(action).fire(new Receiver<FetchMessagesResult>() {
 				@Override
 				public void onSuccess(final FetchMessagesResult response) {
 					if (response == null || response.getRealCount() == 0) {
 						updateRowCount(-1, true);
 					} else {
-						updateRowData(0, response.getMessages());
+						updateRowCount(response.getRealCount(), true);
+						updateRowData(start, response.getMessages());
 					}
 					hc.hideTopLoading();
 				}



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message