CellList Style

74 views
Skip to first unread message

joel

unread,
Aug 9, 2011, 1:28:48 PM8/9/11
to Google Web Toolkit
I'm wanting to add a separator line between elements in my CellList.
How do I do that.

More generally, I'd like to see example of how to properly override
styles in GWT. I have a CellTable, that I pass in custom Resources,
however, it doesn't work if there is _any_ tables that don't use the
customized resource... Seems problematic.

TIA,
J

Jeff Larsen

unread,
Aug 9, 2011, 2:12:45 PM8/9/11
to google-we...@googlegroups.com
GWT Classes

Style extends CSSRource{
   

..../* List of methods */

}

GwtBundle extends ClientBundle{
  
  @Source("someStyleSheet.css")
  Style getStyle();
}

All you need to do now is extend GwtBundle and override the method that creates the style and point it at your new StyleSheet. 
MyBundle extends GwtBundle{

@Source("myCustomeStyleSheet")
 Style getStyle();

}

Don't forget to do MyBundle.getStyle().ensureInjected();

sana ben aissa

unread,
Oct 24, 2012, 11:36:43 AM10/24/12
to google-we...@googlegroups.com
hi , 

how does it work in case i added the same widget twice in a view ? i wanna add the same widget twice in a view with diffrent style ! 
like this , i will always get the second style i puted in the component !

thx for ur time :=)

Thomas Broyer

unread,
Oct 24, 2012, 12:38:36 PM10/24/12
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages