Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何设置GWT手机列表的样式?_Gwt_Gwt2_Gwt 2.4 - Fatal编程技术网

如何设置GWT手机列表的样式?

如何设置GWT手机列表的样式?,gwt,gwt2,gwt-2.4,Gwt,Gwt2,Gwt 2.4,我有一张我想设计的牢房名单。我想更改光标样式,即选定单元格的难看颜色。我检查了几个关于堆栈溢出的问题和讨论,但没有一个有效。 我检查了这些: 她是我的密码: public interface CellListResource extends CellList.Resources { public static CellListResource INSTANCE = GWT.create(CellListResource.class); interface CellListSty

我有一张我想设计的牢房名单。我想更改光标样式,即选定单元格的难看颜色。我检查了几个关于堆栈溢出的问题和讨论,但没有一个有效。 我检查了这些:

她是我的密码:

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);
  }
公共接口CellListResource扩展了CellList.Resources{
公共静态CellListResource实例=GWT.create(CellListResource.class);
接口CellListStyle扩展了CellList.Style{
}
@源代码({CellList.Style.DEFAULT_CSS,“CellTableStyle.CSS”})
CellListStyle();
}
公共搜索视图impl(){
CompanyCell CompanyCell=新CompanyCell();
//它不起作用:S
companiesList=新的单元列表(companyCell,CellListResource.INSTANCE);
rootElement=ourUiBinder.createAndBindUi(this);
加载image.setVisible(false);
}
我错过什么了吗?我清除了浏览器缓存,重新启动了服务器,F5。。。。F5(一次又一次地按刷新)什么也没有。。。!
提前感谢您的帮助。

请确保插入css资源

CellTableResources.INSTANCE.cellTableStyle().ensureInjected();
myCellTable = new CellTable<T>(Integer.MAX_VALUE,CellTableResources.INSTANCE);
CellTableResources.INSTANCE.cellTableStyle().ensureInjected();
myCellTable=newcelltable(Integer.MAX_值,CellTableResources.INSTANCE);
您可以点击以下链接


确保注入css资源

CellTableResources.INSTANCE.cellTableStyle().ensureInjected();
myCellTable = new CellTable<T>(Integer.MAX_VALUE,CellTableResources.INSTANCE);
CellTableResources.INSTANCE.cellTableStyle().ensureInjected();
myCellTable=newcelltable(Integer.MAX_值,CellTableResources.INSTANCE);
您可以点击以下链接


除了注入CSS,调用CellListStyle而不仅仅是style()也很重要:

然后你就这么做了

CellListResource.INSTANCE.cellListStyle().ensureInjected();
companiesList = new CellList<Company>(companyCell, CellListResource.INSTANCE);
CellListResource.INSTANCE.cellListStyle().ensureInjected();
companiesList=新的单元列表(companyCell,CellListResource.INSTANCE);

除了注入CSS,调用CellListStyle而不仅仅是style()也很重要:

然后你就这么做了

CellListResource.INSTANCE.cellListStyle().ensureInjected();
companiesList = new CellList<Company>(companyCell, CellListResource.INSTANCE);
CellListResource.INSTANCE.cellListStyle().ensureInjected();
companiesList=新的单元列表(companyCell,CellListResource.INSTANCE);

我想知道为什么调用方法
cellListStyle()
而不是
style()
很重要。如果你想知道类似的情况,这条评论是为你准备的。线索在
@Override
注释中:您需要在
CellList.Resources
中重写该名称的方法。我想知道为什么调用方法
celllistyle()
而不是
style()
很重要。如果你想知道类似的情况,这条评论是为你准备的。线索在
@Override
注释中:您需要在
CellList.Resources
中重写该名称的方法。