You could do something like this:
Style style = tmpElement.getElement().getStyle();
style.setProperty("border", "1py solid #000000;");
-Danny
2009/3/19 Coonay <[email protected]>
>
> like old html,gwt mix content with style again?
> in gwt ,most dynamic UI element have to set style with addStyleName
> method?
> such as the following,
> public class FirstGWT implements EntryPoint {
> private FlexTable stocksFlexTable = new FlexTable();
> }
>
> if i define the style in the css
> . stocksFlexTable {
> }
>
> can gwt apply this to stocksFlexTable automatically without manually
> calling addStyleName?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---