128,7 → 128,7 |
private static final int VISIBLE_LOCATION_COUNT = 10; |
private static final String VALUE_UNKNOWN = "Inconnues"; |
|
private Grid header = new Grid(1, 1); |
private Grid header = new Grid(1, 2); |
|
private Grid selector = new Grid(1, 1); |
|
177,11 → 177,10 |
header.setStyleName("location-ListHeader"); |
|
|
header.setHTML(0, 0, "Relevés par commune "); // yeah ! |
header.setWidget(0, 1,navBar); |
|
|
header.getCellFormatter().setWidth(0, 0, "100%"); |
|
|
// Mise en forme de l'entree "Toutes localités" |
|
selector.setCellSpacing(0); |
218,8 → 217,6 |
|
// Mise en forme barre navigation |
|
outer.add(navBar); |
|
navBar.setWidth("100%"); |
|
outer.add(header); |
271,7 → 268,7 |
|
setStatusDisabled(); |
|
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user , |
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location , |
new ResponseTextHandler() { |
|
public void onCompletion(String str) { |
324,7 → 321,7 |
|
setStatusDisabled(); |
|
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" |
HTTPRequest.asyncGet(serviceBaseUrl + "/InventoryLocationList/" + user + "/" + location + "/" |
+ startIndex + "/" + VISIBLE_LOCATION_COUNT, |
|
new ResponseTextHandler() { |
378,11 → 375,12 |
|
|
// Suppression fin ancien affichage |
if (i<table.getRowCount()-1) { |
for (int j = table.getRowCount() - 1; j > i-1; j--) { |
if (i<table.getRowCount()) { |
for (int j = table.getRowCount() -1 ; j >= i; j--) { |
table.removeRow(j); |
} |
} |
|
setStatusEnabled(); |
|
|