• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

GWT & JSON & Overlays: How do I use setters to add a row to JSON data?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
GWT & JSON: I can use Overlays & getters to access JSON data, but not setters. Using getters is really slicker 'n snot, but the setters are making me old.

savedNames = JsonUtils.safeEval(result);
if(savedNames.getNames() != null ) {

for( int i = 0; i < savedNames.getNames().length(); i++) {
NameEntry entry = savedNames.getNames().get(i);
contactListBox.addItem(entry.getContact());
}
}

That all works really well. Fast, clear, useful.

In the examples of the overlays there are getters, and also setters. There are examples of using getters, but I can not find an example of using a setter.
So far, no luck figuring out how to use setters. Any ideas would be welcome.

Thanks all.
 
a wee bit from the empire
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic