In JavaScript world, almost everything is a Dictionary.

If you simply need a dictionary, just use a JavaScriptObject.
Here is a example:

        public final native void setValue(String key, String value) /*-{
                this[key] = value;
        }-*/;

        private native static JavaScriptObject _createInstance() /*-{
                var obj = new Object
                return obj
        }-*/;

I think the _createInstance isn't required, but I don't tested.

On 18 jun, 16:13, rhodebump <[email protected]> wrote:
> Can anyone point me to an example in which someone uses Javascript
> Overlays to create a java.util.Map.  I've tried, but keep getting a
>
>  java.lang.ClassCastException:
> com.google.gwt.core.client.JavaScriptObject$ cannot be cast to
> java.util.Map
>
> Is it even possible?  Or am I limited to using a JsArray?
>
> Thanks!

-- 
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.

Reply via email to