Hi all,
I am using an enum in one of my overlay types:
public final class DefaultLevelBean implements LevelBean {
public static final LevelBean create() {
final DefaultLevelBean level = (DefaultLevelBean)
JavaScriptObject.createObject();
return level;
}
protected DefaultLevelBean()
This is just a idea, but you may need to do the following (note that I
skip error checking for brevity here):
public Level getLevel() {
return Level.valueOf(getNativeLevel());
}
public void setLevel(Level level) {
setNativeLevel(level.name());
}
private native String getNativeL
On 13 October 2010 05:30, Nathan Wells wrote:
> This is just a idea, but you may need to do the following (note that I
> skip error checking for brevity here):
>
> public Level getLevel() {
> return Level.valueOf(getNativeLevel());
> }
>
> public void setLevel(Level level) {
> setNativeLe
According to this
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideMarshaling
and this
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript
you need to do something like this