Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Ignore whitespace Rev 12 → Rev 13

/trunk/src/org/tela_botanica/client/DateList.java
128,9 → 128,9
private static final int VISIBLE_DATE_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);
private Grid selector = new Grid(1, 2);
 
private FlexTable table = new FlexTable();
 
171,6 → 171,8
// Mise en forme du header
 
 
header.setCellSpacing(0);
header.setCellPadding(2);
header.setWidth("100%");
177,18 → 179,12
 
header.setStyleName("date-ListHeader");
 
String com;
if (location.compareTo("all")==0) {
com="toutes communes";
}
else {
com=location;
}
header.setHTML(0, 0, "Dates observations "+com); // yeah !
header.setWidget(0, 1,navBar);
 
header.getCellFormatter().setWidth(0, 0, "100%");
// header.getCellFormatter().setWidth(0, 0, "100%");
 
 
// Mise en forme de l'entree "Toutes localités"
226,12 → 222,7
 
table.setStyleName("date-ListElement");
 
// Mise en forme barre navigation
outer.add(navBar);
navBar.setWidth("100%");
outer.add(header);
inner.add(selector); // Toutes localités
inner.add(table);
252,6 → 243,7
mediator.onDateSelected(table.getText(row,cell));
}
else {
date="00/00/0000";
mediator.onDateSelected("00/00/0000");
}
341,17 → 333,7
public void onCompletion(String str) {
String com;
if (location.compareTo("all")==0) {
com="toutes communes";
}
else {
com=location;
}
header.setHTML(0, 0, "Dates observations "+com); // yeah !
 
 
JSONValue jsonValue = JSONParser.parse(str);
JSONArray jsonArray;
JSONArray jsonArrayNested;
380,7 → 362,7
table.setText(row, 0,VALUE_UNKNOWN);
}
if (adate.compareTo(date)==0) {
if ((adate.compareTo(date)==0) || ( date.compareTo("00/00/0000")==0) && adate.compareTo("0000-00-00 00:00:00")==0 ) {
styleRow(row, true);
}
else {
399,11 → 381,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();