To be clear, here is what I did:
SystemStatusResources.java
-----------------------------
// import statements
...
public interface SystemStatusResources extends CellTable.Resources
{
@Source ({CellTable.Style.DEFAULT_CSS, "systemStatus.css"})
CellTable.Style getStyle();
}
-----------------------------
The 'systemStatus.css' file sits in the same package as the
SystemStatusResources.java and looks like this:
-----------------------------
.cellTableEvenRow {
background: #ffffff;
}
.cellTableOddRow {
background: #ffffff;
}
.cellTableOddRowCell {
border: selectionBorderWidth solid #ffffff;
}
.cellTableEvenRowCell {
border: selectionBorderWidth solid #ffffff;
}
-----------------------------
Inside the SystemStatusListView.java:
-----------------------------
...
...
CellTable.Resources resources = GWT.create(SystemStatusResources.class);
CellTable<List<String>> dataTable = new CellTable<List<String>>(0, resources);
...
-----------------------------
The end result is that the same default color shows up for the odd rows.
Any ideas what I am doing wrong?
Thanks,
Yaakov.
> --
> 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-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
What am I doing wrong there?
-Yaakov.
On Wed, Mar 16, 2011 at 5:09 PM, Jeff Larsen <lars...@gmail.com> wrote:
> Have you tried looking at the styles with firebug? Are they there and being
> overwritten or are they not appearing at all?
>
Rename the getStyle() method to cellTableStyle() and put @Override
just to make it clearer that we are overriding this interface method
with our own.
That's it!
Thanks!
-yaakov.