Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 187 → Rev 188

/trunk/src/org/tela_botanica/client/modeles/Information.java
12,13 → 12,17
public Information() {
messages = new ArrayList<String>();
donnees = new ArrayList<Object>();
}
 
public Information(String t) {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
type = t;
}
public Information(String t, String m) {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
messages.add(m);
type = t;
25,6 → 29,7
}
public Information(String t, JSONArray jsonArray) {
donnees = new ArrayList<Object>();
messages = new ArrayList<String>();
for(int i = 0 ; i < jsonArray.size() ; i++) {
if (jsonArray.get(i).isString() != null) {
35,6 → 40,7
}
 
public Information(String t, Object o) {
messages = new ArrayList<String>();
donnees = new ArrayList<Object>();
donnees.add(o);
type = t;
62,8 → 68,17
public void setDonnee(Object objet) {
donnees.add(objet);
}
public void setDonnee(int index, Object objet) {
if (objet != null) {
donnees.add(index, objet);
}
}
public Object getDonnee(int index) {
return donnees.get(index);
try {
return donnees.get(index);
} catch (Exception e) {
return null;
}
}
public ArrayList<Object> getDonnees() {