/trunk/src/org/tela_botanica/client/modeles/UniteBase.java |
---|
14,7 → 14,8 |
} |
public UniteBase(String type, int nombre, String precision, String format, int nombreParts, String precisionPart, int nombreSp, String precisionSp) { |
public UniteBase(String id, String type, int nombre, String precision, String format, int nombreParts, String precisionPart, int nombreSp, String precisionSp) { |
setId(id); |
setType(type); |
setNombre(nombre); |
setPrecision(precision); |
22,6 → 23,13 |
setTypeAutre(false); |
} |
public String getId() { |
return renvoyerValeurCorrecte((String) get("id")); |
} |
public void setId(String id) { |
set("id", id); |
} |
public String getType() { |
return renvoyerValeurCorrecte((String) get("type")); |
} |
/trunk/src/org/tela_botanica/client/modeles/UniteRangement.java |
---|
14,7 → 14,8 |
} |
public UniteRangement(String type, int nombre, String precision, String format) { |
public UniteRangement(String id, String type, int nombre, String precision, String format) { |
setId(id); |
setType(type); |
setNombre(nombre); |
setPrecision(precision); |
22,6 → 23,13 |
setTypeAutre(false); |
} |
public String getId() { |
return renvoyerValeurCorrecte((String) get("id")); |
} |
public void setId(String id) { |
set("id", id); |
} |
public String getType() { |
return renvoyerValeurCorrecte((String) get("type")); |
} |
29,10 → 37,13 |
set("type", type); |
} |
public String getNombre() { |
public double getNombre() { |
if (get("nombre") == null) { |
return new Double(0); |
} |
return get("nombre"); |
} |
public void setNombre(int nombre) { |
public void setNombre(double nombre) { |
set("nombre", nombre); |
} |
/trunk/src/org/tela_botanica/client/modeles/collection/Collection.java |
---|
27,6 → 27,9 |
// BOTANIQUE |
public CollectionBotanique getBotanique() { |
if (botanique == null) { |
botanique = new CollectionBotanique(); |
} |
return botanique; |
} |
public void setBotanique(CollectionBotanique botaniqueAStocker) { |
/trunk/src/org/tela_botanica/client/modeles/collection/CollectionAsyncDao.java |
---|
40,10 → 40,10 |
final JSONObject reponse = responseValue.isObject(); |
Collection collection = new Collection(reponse); |
CollectionBotanique collectionBotanique = new CollectionBotanique(reponse); |
collection.setBotanique(collectionBotanique); |
Information info = new Information("selection_collection"); |
info.setDonnee(0, collection); |
info.setDonnee(1, collectionBotanique); |
vueARafraichir.rafraichir(info); |
} else if (responseValue.isArray() != null) { |
final JSONArray reponse = responseValue.isArray(); |