2,6 → 2,8 |
|
import java.util.ArrayList; |
|
import com.google.gwt.json.client.JSONArray; |
|
public class Information { |
|
private String type = null; |
16,6 → 18,16 |
messages.add(m); |
type = t; |
} |
|
public Information(String t, JSONArray jsonArray) { |
messages = new ArrayList<String>(); |
for(int i = 0 ; i < jsonArray.size() ; i++) { |
if (jsonArray.get(i).isString() != null) { |
messages.add(jsonArray.get(i).isString().stringValue()); |
} |
} |
type = t; |
} |
|
public void setType(String t) { |
type = t; |
39,7 → 51,7 |
String chaine = new String(); |
for(int i = 0 ; i < messages.size() ; i++) { |
// GXT ne prend pas en compte /n ou /r/n... |
chaine += getMessage(i)+"<br />"; |
chaine += getMessage(i)+"\n"; |
} |
return chaine; |
} |