You could also use a CellTable with two columns instead. The first
column then should have a CheckboxCell which depends on the selection.
It's value (as given by the getValue of the Column) should be equal to
selectionModel.isSelected(object) and its ValueUpdater should update
the selection. The
Use the 2 parameter alternative: setSelected(T object, boolean
selected).
If the second parameter is false, the selection model will not fire a
SelectionChangeEvent.
On Feb 9, 2:43 pm, Alejandro D. Garin aga...@gmail.com wrote:
Hi,
I'm using a CellTable like a vertical menu Widget. i.e. the
Sorry, I was completely off.
On Feb 9, 11:26 pm, John LaBanca jlaba...@google.com wrote:
On Wed, Feb 9, 2011 at 10:01 AM, Thomas Visser thomas.vis...@gmail.comwrote:
Use the 2 parameter alternative: setSelected(T object, boolean
selected).
The second parameter indicates whether
CellTable keeps record of the 'hoveringRow'. This attribute can change
inside the onBrowserEvent2 (http://www.google.com/codesearch/p?
hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/
CellTable.javaq=hoveringRow%20package:http://google-web-toolkit
%5C.googlecode%5C.coml=881) method.
This is not possible. In your case, the click event is always also
given to the SelectionModel.
See line 971 in CellTable (http://www.google.com/codesearch/p?
hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/
CellTable.javaq=CellTable%20package:http://google-web-toolkit
A column can only have one cell, which can't be changed on a row by
row basis. You could subclass SelectionCell and override render to
return the output of its super's render or the output of a TextCell
that you'll store in an attribute.
On Feb 12, 5:07 am, Sydney sydney.henr...@gmail.com wrote:
Have a look in the CellTable. Its constructor (http://google-web-
toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/cellview/
client/CellTable.html#CellTable(int,
com.google.gwt.user.cellview.client.CellTable.Resources) takes a
second parameter, which is a Resource object. If you create
:
yeah, i had the feeling i have to ditch the selectionModel.
thanks for your help...
On Feb 11, 6:28 am, Thomas Visser thomas.vis...@gmail.com wrote:
This is not possible. In your case, the click event is always also
given to the SelectionModel.
See line 971 in CellTable (http