Which UiField type is this ?

45 views
Skip to first unread message

JC

unread,
Jul 15, 2011, 11:46:58 AM7/15/11
to Google Web Toolkit
I want to switch the center section to different components. But which
field type is aaa in the java code ?

<g:center ui:field='aaa' size="7.7">


@UiField
FIELD?? aaa;

Jens

unread,
Jul 15, 2011, 5:08:50 PM7/15/11
to google-we...@googlegroups.com
You have to use 

<g:center size="7.7">
  <g:SimplePanel ui:field="centerContainer" />
</g:center>

And then its @UiField SimplePanel centerContainer.

-- J.

JC

unread,
Jul 17, 2011, 10:27:52 AM7/17/11
to Google Web Toolkit
Ok that works. I have 1 more question. When I add a panel to the
center container it fills the entire center as expected. How can I
round the corners? I want to round the top right, bottom left and
bottom right corners.

Jens

unread,
Jul 17, 2011, 11:05:59 AM7/17/11
to google-we...@googlegroups.com
Round corners can be done with CSS (border-radius) but this only works in modern browsers. It does not work in IE6/7/8 but there are projects that bring border-radius to these IE versions, e.g. http://css3pie.com/ (but I do not know how it affects performance).

Other solution would be to use small rounded corner images and put them into the corners. Using images you can have round borders in every browser.

JC

unread,
Jul 17, 2011, 11:49:05 AM7/17/11
to Google Web Toolkit
If I wanted to try the second option, how would you design panels and
drop the images directly in the corners? Do you need a custom layout?

Thomas Broyer

unread,
Jul 17, 2011, 12:19:17 PM7/17/11
to google-we...@googlegroups.com
You can use a DecoratorPanel.

JC

unread,
Jul 18, 2011, 9:26:58 AM7/18/11
to Google Web Toolkit
Ok thanks I will try the DecoratorPanel. I just have 1 more question
for now.
My overall layout is finally coming together. But the buttons and text
boxes are too big. I am not an expert in css. Do you know how I can
make them smaller?
Reply all
Reply to author
Forward
0 new messages