Whatever you set as a style name in a GWT widget will translate to a class="stylename" attribute in the HTML element that represents your widget.
You can set whatever name you want in there, but it will only do something if you define a css class in a css file that is linked to in your application. There's not really any such thing as a built-in style. You write the style sheets and define the styles there, and then reference them in your GWT code. On Jan 30, 5:24 am, Rafael <[email protected]> wrote: > To be honest i do not have much experience with .css. > The thing is, i am getting confused when trying to set the style of > a widget. > I understand i should use the method setStyleName() or addStyleName > () but i dont know where to look for possible style names. > > For example: > > final DecoratedStackPanel stackPanel; > > //creo el stackPanel > stackPanel = new DecoratedStackPanel(); > stackPanel.setStyleName(DecoratedStackPanel.DEFAULT_STYLENAME); > > Instead of DecoratedStackPanel.DEFAULT_STYLENAME, ¿Which other style > names could i use? ¿Where could i find a list of basic built in > styles? > > the nooboid (Rafael) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
