My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
MyGwt  
Updated Feb 4, 2010 by james.st...@gmail.com

The MyGWT support in UFace lets you deploy your UFace application using GWT with the MyGWT widget library.

UIComposite

To be able to create widgets with UFace you need to get a UIComposite to represent the Panel you are gonna add widgets to. You can see this in action in the org.ufacekit.ui.mygwt.example.

You can create a UIComposite as follows in your EntryPoint

public class MyApp implements EntryPoint {

    public void onModuleLoad() {
        RootPanel rootPanel = RootPanel.get();
        UIComposite root = new GwtExtComposite(rootPanel);

        // now I can create some UI components
        UIFactory factory = root.getFactory();
        factory.createTable(root, ...);
    }
}

Sign in to add a comment
Powered by Google Project Hosting