I am wondering why GWT team has overlooked the need for
- get (String key) method
- toArray() method
Therefore, I had to extend JsArray
public class JsObjectArray
extends JsArray<JavaScriptObject>
{
protected JsObjectArray(){}
final public native String get(String key)
/*-{return this[key];
}-*/;
final public String[] toStringArray()
{
String[] values = new String[this.length()];
for (int i=0; i<this.length(); i++)
{
values[i] = this.get(i).toString();
}
return values;
}
}
I strongly believe (to the utmost nth order) that GWT should provide
these methods within JsArray rather my (and the rest of the world)
having to maintain our own individual class extension to get these
functionality.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---