Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 12 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12 Rev 13
Line 126... Line 126...
126
 
126
 
127
 
127
 
Line 128... Line 128...
128
		private static final int VISIBLE_LOCATION_COUNT = 10;
128
		private static final int VISIBLE_LOCATION_COUNT = 10;
Line 129... Line 129...
129
		private static final String VALUE_UNKNOWN = "Inconnues";
129
		private static final String VALUE_UNKNOWN = "Inconnues";
Line 130... Line 130...
130
 
130
 
Line 175... Line 175...
175
			header.setWidth("100%");
175
			header.setWidth("100%");
Line 176... Line 176...
176
 
176
 
Line 177... Line 177...
177
			header.setStyleName("location-ListHeader");
177
			header.setStyleName("location-ListHeader");
178
 
178
 
179
			
-
 
Line 180... Line 179...
180
			header.setHTML(0, 0, "Relevés par commune               ");  // yeah !
179
			
Line 181... Line 180...
181
 
180
			header.setWidget(0, 1,navBar);
Line 216... Line 215...
216
 
215
 
Line 217... Line 216...
217
			table.setStyleName("location-ListElement");
216
			table.setStyleName("location-ListElement");
Line 218... Line -...
218
 
-
 
219
			// Mise en forme barre navigation
-
 
220
			
217
 
Line 221... Line 218...
221
			outer.add(navBar);
218
			// Mise en forme barre navigation
222
			
219
			
223
			navBar.setWidth("100%");
220
			navBar.setWidth("100%");
Line 269... Line 266...
269
		
266
		
Line 270... Line 267...
270
		public void updateCount() {
267
		public void updateCount() {
Line 271... Line 268...
271
			
268
			
272
			setStatusDisabled();
269
			setStatusDisabled();
Line 273... Line 270...
273
 
270
 
274
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user ,
271
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location ,
275
					new ResponseTextHandler() {
272
					new ResponseTextHandler() {
Line 322... Line 319...
322
		public void update() {
319
		public void update() {
Line 323... Line 320...
323
 
320
 
Line 324... Line 321...
324
			
321
			
325
			setStatusDisabled();
322
			setStatusDisabled();
Line 326... Line 323...
326
 
323
 
Line 327... Line 324...
327
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/"
324
			HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location + "/"
Line 376... Line 373...
376
							selector.getRowFormatter().addStyleName(0, "location-SelectedRow");
373
							selector.getRowFormatter().addStyleName(0, "location-SelectedRow");
377
					}
374
					}
Line 378... Line 375...
378
 
375
 
379
					
376
					
380
					// Suppression fin ancien affichage
377
					// Suppression fin ancien affichage
381
					if (i<table.getRowCount()-1) {
378
					if (i<table.getRowCount()) {
382
						 for (int j = table.getRowCount() - 1; j > i-1; j--) {
379
						 for (int j = table.getRowCount() -1 ; j >= i; j--) {
383
							 table.removeRow(j);
380
							 table.removeRow(j);
-
 
381
						 }
384
						 }
382
					}
Line 385... Line 383...
385
					}
383
 
386
					setStatusEnabled();
384
					setStatusEnabled();