Ehh I've figured it out... I didn't set selection model. I was
thinking that this is not required.

On 29 Paź, 00:16, gruchapaul <[email protected]> wrote:
> Unfortunately i'm overriding :public ImageResource
> cellListSelectedBackground(); and there's no such method
> ensureInjected();
> Maybe I'm wrong and cellListSelectedBackground() doesn't set selected
> item bg ?
> Any other ideas?
>
> On 28 Paź, 21:38, agi <[email protected]> wrote:
>
> > I hade similar problem and I have solved it by calling:
> >  StylledListResources.INSTANCE.cellListStyle().ensureInjected();
>
> > my overrided resources look like this:
>
> >  public interface StylledListResources extends CellList.Resources {
>
> >         final static StylledListResources INSTANCE =
> > GWT.create(StylledListResources.class);
>
> >         /**
> >          * the overrided styles
> >          */
> >         @Source("FaplCellList.css")
> >         Style cellListStyle();
> >     }
>
> > hth
>
> > On Oct 28, 6:56 pm, gruchapaul <[email protected]> wrote:
>
> > > Hello, I'm trying to set background to selected item in CellList.
> > > Default it's ugly yellow and I want it to be like on GWT Showcase.
> > > This is the way i'm doing this
>
> > > public interface Resources extends CellList.Resources {
> > >        public static final Resources INSTANCE =
> > > GWT.create(Resources.class);
>
> > >       �...@source("aaa.png")
> > >        ImageResource buzz();
>
> > >       �...@source("aa2.png")
> > >        ImageResource buzz2();
>
> > >       �...@override
> > >       �...@source("cellBg.png")
> > >        public ImageResource cellListSelectedBackground();
>
> > > }
>
> > > ....
> > > class MyMenu...{
> > > ...
> > > CellList<String> cellList_2 = new CellList<String>(new
> > > TextCell(),Resources.INSTANCE);
> > > ...}
>
> > > And nothing has changed. What's wrong?
>
>

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