Thursday, June 24, 2010

Re: SelectionModel on CellTable

On 24 juin, 18:30, bond <daniele.re...@gmail.com> wrote:
> Hi,
> I've  a question on Cell table and in particolar on the SelectionModel
> (SingleSelectionModel).
> I've a table with several colums.Some column are plain data (text or
> html), some other columns are an image that you can click in order to
> make an action (for example a lock icon is used for enable o disable
> an operator and so on).
>
> I'm using a TextCell in plain columns,and I've created a MyActionCell
> in wich i can manage an image and a click on it.
> The problem is that the SelectionModel catch all the clicks on each
> cell.I'd like to know which is the best method to manage this
> situation.
>
> I'm using SelectionModle because my UI is very similar to this
> http://gwt-bikeshed.appspot.com/Expenses.html,
> so when you click on a row is shown the detail of that row.
> I'd like to know if is possible to use SelectionModel on a subset of
> cells.

I think it's a bug in CellTable. CellList only calls setSelected on
the SelectionModel when the Cell's consumesEvents returns false, but
CellTable calls setSelected unconditionally.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment