天道酬勤,学无止境

listgrid

SmartGWT:是否可以为列表网格中的某行着色?(SmartGWT: is it possible to color a a certain row in a list grid?)

问题 可以在smartGWT listGrid中为特定的行着色吗? 我想只上色1行,而不是全部listGrid 回答1 在SmartGWT中,以Style结尾的方法(例如get Style,getBaseStyle,getCellStyle等)需要返回在其他地方定义的CSS类(.css文件,应用程序加载jsp中的内联css等)。 同样适用于Set Style方法。 除非完成许多CSS定制以保证需要这样做,否则使用getCellCSSText可能是最好的选择。 getCellCSSText返回每个单元格的CSS文本,并将在每次重绘期间调用。 final ListGrid resultsGrid = new ListGrid() { @Override protected String getCellCSSText(ListGridRecord record, int rowNum, int colNum) { String style = super.getCellCSSText(record, rowNum, colNum); // conditions can check values in record using rowNum, colNum as well as record attributes if (record.getAttribute("<grid-field

2021-05-18 10:58:29    分类:技术分享    java   gwt   row   smartgwt   listgrid

Smartgwt selectitem键值问题(Smartgwt selectitem key value issue)

问题 我有一个SelectItem ,我通过一个Map填充了这个Map ,该组合在listgridfield内,所以在那里很好,但是当我在组合框中选择任何项目而不是获取地图的描述或值时,将键放在listgridfield中。 如何使我设置值而不是键? 现在,我尝试使用AddChangeHandler进行操作,但没有成功。 我得到了下一个代码: final ListGridField measureField = new ListGridField(CdmsConstants.MEASURE_ABB, CdmsConstants.CMB_MEASURE_TITULO, 100); final SelectItem measureComboBox = new SelectItem(); measureComboBox.setDefaultToFirstOption(false); measureComboBox.setName(CdmsConstants.MEASURE_ABB); measureComboBox.setTitle(CdmsConstants.CMB_MEASURE_TITULO); measureComboBox.setDefaultValues(CdmsConstants.CMB_DEFAULT_VALUE); measureComboBox.setType(

2021-05-12 03:18:07    分类:技术分享    smartgwt   listgrid

SmartGWT: is it possible to color a a certain row in a list grid?

all is it possible to color a certain Row in smartGWT listGrid ? i want to color just 1 row , not all the listGrid

2021-05-09 07:44:32    分类:问答    java   gwt   row   smartgwt   listgrid

Smartgwt selectitem key value issue

I have a SelectItem which I fill through a Map that has this combo is within a listgridfield, so good up there, but when I select any item in the combobox instead of get the description or value of the map puts the key in the listgridfield. How I can do to make me set the value instead of key? now I tried to do with AddChangeHandler but has not worked. I got the next code: final ListGridField measureField = new ListGridField(CdmsConstants.MEASURE_ABB, CdmsConstants.CMB_MEASURE_TITULO, 100); final SelectItem measureComboBox = new SelectItem(); measureComboBox.setDefaultToFirstOption(false)

2021-04-30 19:03:30    分类:问答    smartgwt   listgrid