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

UFace supports a number of different GWT widget sets such as GwtExt and MyGwt. This document focusses on using the default GWT widgets with UFace.

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.gwt.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 GwtComposite(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