Subversion Repositories eFlore/Archives.cel-v1

Compare Revisions

Ignore whitespace Rev 6 → Rev 7

/trunk/src/org/tela_botanica/client/NameAssistant.java
43,15 → 43,12
JSONValue jsonValue= JSONParser.parse(str);
JSONArray jsonArray;
JSONArray jsonArrayNested;
JSONString jsonString;
 
if ((jsonArray = jsonValue.isArray()) != null) {
for (int i = 0; i < jsonArray.size(); ++i) {
if ((jsonArrayNested = jsonArray.get(i).isArray()) != null) {
if ((jsonString = (jsonArrayNested.get(0)).isString()) != null) {
autoCompletebox.addItem(((JSONString) jsonArrayNested.get(0)).stringValue(),((JSONString) jsonArrayNested.get(1)).stringValue());
}
autoCompletebox.addItem(((JSONString) jsonArrayNested.get(0)).stringValue(),((JSONString) jsonArrayNested.get(1)).stringValue());
}
}
}
/trunk/src/org/tela_botanica/client/AutoCompleteAsyncTextBox.java
203,13 → 203,14
{
items.clear();
/* if (getFromCache(text)!=null) {
if (getFromCache(text)!=null) {
items=getFromCache(text);
displayList();
}
else {*/
else {
this.doFetchURL(text);
//}
}
}
}
222,7 → 223,7
if(this.items.size() > 0)
{
//addToCache(this.getText(),(Vector) items.clone());
addToCache(this.getText(),(Vector) items.clone());
choices.clear();