Hello there, I have a DecoratedStackPanel, and I want to style it so that each button in the stack has a different style (e.g. background color.)
I've tried this.addStyleName("menu_style1"); but this adds the extra styles to all the buttons of the stackpanel. Is there a way to assign different styles to the different stackpanel menu items? Is there something like getBaseStyle for ListGrids which allow you to identify which cell this is and style accordingly? @Override protected String getBaseStyle(ListGridRecord record, int rowNum, int colNum) { if (colNum == 2) return super.getBaseStyle(record, rowNum, colNum) + "-StyleForColumn2"; } I understand the edges and corners of the DecoratedStackPanel are images, so I would need to create new ones which match the background colors I would like to use... thanks, Alan -- 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-tool...@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.