Override the cellListStyle() inside  MyCellListResources.  I have
added a sample CSS to test it out.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

//corrected code.

 interface MyCellListResources extends CellList.Resources {
    @Source({"CellList.css"})
    @Override
    public Style cellListStyle();
  }

cellList = new CellList<InboxModel>(contactCell,
GWT.<MyCellListResources> create(MyCellListResources.class));

//CellList.css
.cellListWidget {

}

.cellListEvenItem {
  cursor: pointer;
  zoom: 1;
  background:red;
}

.cellListOddItem {
  cursor: pointer;
  zoom: 1;
   background:blue;
}

.cellListKeyboardSelectedItem {
  background: #ffc;
}

@sprite .cellListSelectedItem {
  gwt-image: 'cellListSelectedBackground';
  background-color: green;
  color: white;
  height: auto;
  overflow: visible;
}




On Sep 22, 12:15 am, nacho <[email protected]> wrote:
> I am trying to apply styles to a CellList, and I have this in my Java:
>
> interface MyCellListResources extends CellList.Resources {
>       @Source({"CellList.css"})
>       MyCellListStyle cellTableStyle();
>     }
>
>     interface MyCellListStyle extends CellList.Style {
>
>     }
>
> cellList = new CellList<InboxModel>(contactCell, resources);
>
> And my CellList.css is a copy of the GWT original where I online changed
> some colors.
>
> I have no error at all... but I am not seing my defined styles in my app.
>
> I am missing something?

-- 
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.

Reply via email to