Re: get stuck with SingleSelectionModel
On Feb 23, 10:56 am, Kolban <kolb...@kolban.com> wrote:
> I think you need to keep your own state/local variable that holds a
> reference to the previously selected object. The value of this variable
> would be changed whenever a new selection change event arrives.
much thanks for your reply, it helps me a lot and can really solve my
problem.
through the struggling of this problem, I faced many problem as
follow;
1) I found that after setting SingleSelectionModel, the column
FieldUpdater and the CheckboxCell onBrowserEvent will not run
anymore, why will this happen? because
SelectionModel.SelectionChangeEvent hides the FieldUpdater and the
CheckboxCell onBrowserEvent?
2) I extends the CheckboxCell to make RadioCell, but in the code of
CheckboxCell, I really don't know what is "dependsOnSelection",
"handlesSelection"?
(from the comment, dependsOnSelection true if the cell depends on the
selection state. handlesSelection true if the cell modifies the
selection state....what does it means exactly???)
3) in the CheckboxCell render method, it has a segment
if (viewDagta != null && viewData.equals(value)){
clearViewData(key);
viewData = null;
}
what is the function of this statement?
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home