celltable

Adding style to a ButtonCell

二次信任 提交于 2019-12-11 09:39:12
问题 I know my question is considered initially to refer to the "very novice" level, but I have spent quite o lot of time on searching for the answer. I have used in a gwt application a DataGrid and I have attached a diversity of specific Cell widgets (i.e. TextCell, ButtonCell). My concern is how I can add and handle styling to the button of a ButtonCell through custom css. The code which implements the column of ButtonCells looks like as follows: Column<FilterInfo, String> delButtonColumn = new

How to deselect a row in GWT CellTable without firing onSelectionChange(…)

余生长醉 提交于 2019-12-11 01:57:44
问题 I have a GWT CellTable with SingleSelectionModel enabled. Once a user clicks a row, the onSelectionChange(...) fires up my Confirmation Dialog which asks the user whether to proceed or not. The issue is when the user clicks 'Cancel', nothing happens but he is not able to select the same row (assume only 1 row in the CellTable) I know I can clear the selection once the user clicks 'Cancel', but that will fires onSelectionChange(..) again and triggers my Confirmation Dialog ..... it's an

GWT get CellTable contents for printing or export

拜拜、爱过 提交于 2019-12-10 21:17:54
问题 I have a GWT CellTable that gets populated using somewhat of a complicated and tedious process. I want the user to be able to print or export the data from that table. I would rather not re-render the table contents for export since it is a tedious process. How can I get the contents of all the rows from all the pages of my CellTable so I can put together a document for printing or export? I'd be fine with a method of grabbing the actual HTML of the table, or an algorithm for iterating

Make the rows of the datagrid draggable in GWT

ε祈祈猫儿з 提交于 2019-12-10 15:59:14
问题 I want to make a datagrid in which rows will be draggable so that a person can move rows up and down by dragging the rows. As row of the datagrid will be get as an element. I know how to make the widgets draggable, but how the rows of the datagrid can be made draggable? I don't want to use any extra plugin or library for achieving this. 回答1: The only library I know of that support drag&drop with(in) cell widgets is GwtQuery with droppable plugin, see their showcase. I suggest your to give it

How to fix the Column Ordering issue when Insert and Remove columns in GWT?

假装没事ソ 提交于 2019-12-08 11:06:48
问题 I have a cellTable that has many columns like the followings: OrderID - OrderDate - OrderTime - Name ..... 1 - 2012-01-05 - 11:12:12 - Tom...... Each column will have a checkBox for Hide/Unhide column: [x] orderID (CheckBox) [x] orderDate (CheckBox) [x] orderTime (CheckBox) ...... Requirement: I want that when users uncheck the CheckBox the corresponding column will disappear & when they check the CheckBox, the column will appear in the CORRECT ORDER as at the beginning. This is the code:

GWT CellTable keep focus on selected row

白昼怎懂夜的黑 提交于 2019-12-07 18:12:38
问题 When I select a row in a CellTable which contains several columns, the whole row gets colored in yellow. It does not depend on which area of the row I click (which column of the row). What I try to do is to keep the selected row colored in yellow as long as no other row of this very table is selected. At the moment, as soon as I click somewhere else in the browser, the row gets back its original color. I tried to use a selection model, but this changed nothing. Do you have any advise or is

GWT CellTable keep focus on selected row

↘锁芯ラ 提交于 2019-12-05 20:56:21
When I select a row in a CellTable which contains several columns, the whole row gets colored in yellow. It does not depend on which area of the row I click (which column of the row). What I try to do is to keep the selected row colored in yellow as long as no other row of this very table is selected. At the moment, as soon as I click somewhere else in the browser, the row gets back its original color. I tried to use a selection model, but this changed nothing. Do you have any advise or is this simply not possible, since the focus is managed by the browser? The behavior is the same in the

Dynamic styles for GWT cellTable cells

爱⌒轻易说出口 提交于 2019-12-03 18:15:56
问题 I'm having an issue using GWT. I'm building the columns of a cellTable and I want the style of a cell to depends of the value of that cell: Column<MyProxy, MyProxy> editButtonColumn = new Column<MyProxy, MyProxy>(new ActionCell<MyProxy>("", new ActionCell.Delegate<MyProxy>() { @Override public void execute(MyProxy record) { if (object.isEditable()) { doSomething(record); } } })) { @Override public MyProxy getValue(MyProxy object) { if (object.isEditable()) { this.setCellStyleNames(

Defining GWT CellTables with UiBinder

两盒软妹~` 提交于 2019-12-03 12:20:25
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>

gwt cell table dynamic columns - sorting

ぐ巨炮叔叔 提交于 2019-12-02 11:31:29
问题 You can represent your "rows" as List<String> instances, you have to change your parameterization from String to List in your Grid, Column and data provider; and of course you have to call updateRowData with a List<List<String>> , not a List<String> . You also need one Column instance per column, taking the value out of the List by index: class IndexedColumn extends Column<List<String>, String> { private final int index; public IndexedColumn(int index) { super(new EditTextCell()); this.index