How to style a GWT CellList?

I have a CellList that I want to create. I want to change the cursor style, the ugly color of the selected cell. I checked a few questions and discussions about stack overflow, but none of them worked. I checked them:

CSS style for CellList GWT

How to create gwt 2.1 cellTables header headers?

This is my code:

public interface CellListResource extends CellList.Resources {


  public static CellListResource INSTANCE = GWT.create(CellListResource.class);

  interface CellListStyle extends CellList.Style {

  }

  @Source({CellList.Style.DEFAULT_CSS, "CellTableStyle.css"})
  CellListStyle style();
}

 public SearchViewImpl() {

    CompanyCell companyCell = new CompanyCell();
//it doesn't work :S 
    companiesList = new CellList<Company>(companyCell, CellListResource.INSTANCE);

    rootElement = ourUiBinder.createAndBindUi(this);

    loadingImage.setVisible(false);
  }

Am I missing something? I cleared the browser cache, restarted server, F5 F5 F5 .... F5 (clicking updates again and again) and nothing ...! Thank you for your help.

+1
source share
2 answers

Make sure you enter the css resource.

CellTableResources.INSTANCE.cellTableStyle().ensureInjected();
myCellTable = new CellTable<T>(Integer.MAX_VALUE,CellTableResources.INSTANCE);

You can go to the following link

How do you change the mouse over a selection?

+2
source

CSS , CellListStyle cellListStyle(), ():

public interface CellListResource extends CellList.Resources {
  public static CellListResource INSTANCE = GWT.create(CellListResource.class);
  interface CellListStyle extends CellList.Style {}

  @Override
  @Source("cellListStyle.css")
  CellListStyle cellListStyle();
}

CellListResource.INSTANCE.cellListStyle().ensureInjected();
companiesList = new CellList<Company>(companyCell, CellListResource.INSTANCE);
+3

All Articles