Re: Implementing Contacts List with 'mark as favorite' checkbox

2011-02-09 Thread Thomas Visser
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

Re: CellTable SelectionModel

2011-02-09 Thread Thomas Visser
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

Re: CellTable SelectionModel

2011-02-09 Thread Thomas Visser
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

Re: Syncronize hovered rows in two cellTables

2011-02-11 Thread Thomas Visser
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.

Re: Celltable w/ selectionModel and ActionCells

2011-02-11 Thread Thomas Visser
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

Re: CellTable SelectionCell or only text within a column

2011-02-12 Thread Thomas Visser
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:

Re: which classname is used by SelectionModel ?

2011-02-14 Thread Thomas Visser
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

Re: Celltable w/ selectionModel and ActionCells

2011-02-22 Thread Thomas Visser
: 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