Every attribute is turned into a setter.
The HTML Widget do not have a setClass method, but you can use "styleName"
or "width"

<g:HTML>
       <g:HTML ui:field="header" styleName="window-header"
width="50px"></g:HTML>
       <g:HTML ui:field="content" styleName="window-content"></g:HTML>
</g:HTML>

On Wed, Feb 23, 2011 at 8:55 AM, Vinicius Carvalho <
viniciusccarva...@gmail.com> wrote:

> Hello there!
>
> How do I change the attributes (size and width) of a given UIBinder
> element? I've read about changing the class, but this is not what I
> need actually.
>
> Here's my uibinder file:
>
> <g:HTML>
>        <g:HTML ui:field="header" class="window-header"></g:HTML>
>        <g:HTML ui:field="content" class="window-content"></g:HTML>
> </g:HTML>
>
>
> I need to change the width of the outer HTML element of the uiBinder.
> The fields I can change with no problems, as I access them using the
> class properties. but I have no idea about the outer HTML
>
> BR
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to