james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r1522390 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui: LabelListView.java LabelListView.ui.xml
Date Thu, 12 Sep 2013 04:46:29 GMT
Author: dongxu
Date: Thu Sep 12 04:46:28 2013
New Revision: 1522390

URL: http://svn.apache.org/r1522390
Log:
replace Label List View in setting place to use ScrollPanel

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.ui.xml

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.java?rev=1522390&r1=1522389&r2=1522390&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.java Thu
Sep 12 04:46:28 2013
@@ -207,6 +207,7 @@ import com.google.gwt.user.cellview.clie
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.DockLayoutPanel;
+import com.google.gwt.user.client.ui.ScrollPanel;
 import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.view.client.AsyncDataProvider;
 import com.google.gwt.view.client.HasData;
@@ -220,7 +221,7 @@ import com.google.web.bindery.requestfac
 public class LabelListView extends Composite implements LabelListActivity.Displayable {
 
 	@Inject LabelPropertiesActivity.Displayable labelProperties;
-	@UiField SimplePanel thisView;
+	@UiField ScrollPanel thisView;
 
 	@UiField Button add;
 	@UiField Button delete;
@@ -304,6 +305,8 @@ public class LabelListView extends Compo
 		@Override
 		protected void onRangeChanged(HasData<LabelNode> display) {
 
+            final int start = display.getVisibleRange().getStart();
+
 			rf.fetchFoldersRequest().fetch(null, Boolean.TRUE).fire(new Receiver<List<ImapFolder>>()
{
 				@Override
 				public void onSuccess(List<ImapFolder> response) {
@@ -314,7 +317,7 @@ public class LabelListView extends Compo
 						for (ImapFolder folder : response) {
 							fillCellList(folderNodes, folder, LabelNode.ROOT);
 						}
-						updateRowData(0, folderNodes);
+						updateRowData(start, folderNodes);
 					}
 				}
 

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.ui.xml?rev=1522390&r1=1522389&r2=1522390&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelListView.ui.xml Thu
Sep 12 04:46:28 2013
@@ -19,8 +19,12 @@
 =======
 	<g:DockLayoutPanel>
 		<g:center>
+<<<<<<< HEAD
 			<g:SimplePanel ui:field="thisView" />
 >>>>>>> make delete label in label setting work(backend now)
+=======
+			<g:ScrollPanel ui:field="thisView" />
+>>>>>>> replace Label List View in setting place to use ScrollPanel
 		</g:center>
 		<g:south size="43">
 			<g:FlowPanel ui:field="folderOpButtons">



---------------------------------------------------------------------
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