> public class MyGui implements EntryPoint
> {
>   public void onModuleLoad()
>   {
>     panel(
>       css(RootPanel.get(), "main"),
>       panel(
>         new HorizontalPanel(),
>         css(new InlineLabel("Hello, world!"), "helloLabel"),
>         css(new Button("click me"), "button");
>     );   
>   }
> }

Reminds me of AxisPanel from [1]:

    AxisPanel p = new AxisPanel()
    .y().width("100%")
        .x(myNorthContentPanel).css("north").q()
        .x().width("100%")
            .y(myWestContentPanel).css("west").q()
            .y(myCenterContentPanel).css("center")
                .width("100%").align(0,0).q()
            .y(myEastContentPanel).css("east")
                .width("100%").align(1,0).q()
            .q()
        .x(mySouthContentPanel).css("south").q()
    .q();

I prefer UiBinder, though I can understand that before that was
available then something like this might look attractive.

- Stephen

[1] http://sonymathew.blogspot.com/2008/12/fluent-dsl-for-rich-ui.html

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
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/javaposse?hl=en.

Reply via email to