天道酬勤,学无止境

gwt-celltable

Set default sort order for initial header click on gwt cell table

I have a GWT CellTable with sortable columns very similar to the developer's guide example (http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html#columnSorting). However, I would like to have certain columns sort descending instead of ascending by default. That is, if column A is not currently sorted and I click on it's header, I want column A to be sorted descending on that first click and ascending on the second click. But I do still want other columns to sort as they currently do - using ascending order on the first click. Aside from the Column.setSortable(boolean) method to

2021-06-14 22:53:21    分类:问答    gwt   gwt-celltable

GWT EditTextCell : How to increase editable TextBox width in EditTextCell?

I am using GWT2.3 in my project. I want to increase editableTextBox width when user click on editableTextCell. Problem is My Column width is 200 Px. when user clicks on editableTextCell then that TextBox width is around 125px in EditableTextCell is less as compare to column width. I added EditTextCell in Celltable's column Column stringColumn = new Column(new EditTextCell()) { // My Code } cellTable.addColumn(stringColumn, "MyColumn"); cellTable.setColumnWidth(checkBoxColumn, 200, Unit.PX); I tried following way to increase TextBox width but problem is I cannot edit in textbox + focus not

2021-06-11 10:40:43    分类:问答    gwt   cell   gwt-2.2-celltable   gwt-celltable

Defining GWT CellTables with UiBinder

If I define my CellTable in MyView.ui.xml UiBinder file like this: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:c="urn:import:com.google.gwt.user.cellview.client" ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat' ui:generateKeys='com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator' ui:generateLocales='default' xmlns:p1="urn:import:com.google.gwt.user.cellview.client"> ... <g:HTMLPanel> <c:CellTable addStyleNames='{style.cellTable}' pageSize='15' ui:field='cellTable' width="100%"> </c:CellTable> </g:HTMLPanel>

2021-06-02 05:24:38    分类:问答    gwt   uibinder   celltable   gwt-celltable