Hi,
I'm trying to set up get editors with classes that are auto-generated to be
something like:
public static class Foo {
String name;
boolean isNameSet;
public String getName() {
return name;
}
public void setName(String name) {
isNameSet = true;
this.name = name;
}
public boolean hasName() {
return isNameSet;
}
}
But when I try the code:
interface Driver extends SimpleBeanEditorDriver<Foo, EditorTest> {}
public static class EditorTest extends DialogBox implements Editor<Foo> {
@Path("name")
Label nameEditor;
public EditorTest() {
nameEditor = new Label();
}
}
public void edit() {
Driver driver = GWT.create(Driver.class);
EditorTest test = new EditorTest();
driver.initialize(test);
driver.edit(new Foo());
test.center();
}
I get a compilation error about String not having a setName() or hasName()
method. Is there some way I can use the GWT editor framework with objects
that are like Foo (have set/get/has for each field)?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/Ezq0SUseqk0J.
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.