aspose file tools*
The moose likes GWT and the fly likes GWT & JSON & Overlays:  How do I use setters to add a row to JSON data? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT & JSON & Overlays:  How do I use setters to add a row to JSON data?" Watch "GWT & JSON & Overlays:  How do I use setters to add a row to JSON data?" New topic
Author

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

Dick Martin
Greenhorn

Joined: Sep 15, 2011
Posts: 6
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.
 
jQuery in Action, 2nd edition
 
subject: GWT & JSON & Overlays: How do I use setters to add a row to JSON data?