Editor framework

14 views
Skip to first unread message

sapana

unread,
May 7, 2012, 5:05:27 AM5/7/12
to google-we...@googlegroups.com
Hi all,

I started working with editor framework.
I created project for editor with plain old java object. so it's working fine.

Following code is for simple Email class which run fine.

public class Editor implements EntryPoint {

     // final ClientGinjector ginjector = GWT.create(ClientGinjector.class);
    interface Driver extends SimpleBeanEditorDriver<Email, SubEditor>{}
    @Override
    public void onModuleLoad() {
       
        final Driver driver = GWT.create(Driver.class);
       
        final SubEditor f = new SubEditor();
      
        driver.initialize(f);
        driver.edit(new Email());

        RootPanel.get().add(f);

        Button button = new Button("Get Data");
        RootPanel.get().add(button);

        button.addClickHandler(new ClickHandler() {

        public void onClick(ClickEvent arg0) {
            Email e = driver.flush();
        System.out.println( "Email..."+e.getEmail());
        }
        });       
       
    }

But Now I need to work with plain old java interface. For example Email is interface here.
So am not able to pass object to driver.edit() function.
It give Exception like : Deferred binding result type 'com.example.editor.client.Email' should not be abstract
So can anybody help me in that.

Thanks in advance.
 
Reply all
Reply to author
Forward
0 new messages