Wednesday, February 22, 2012

Ideas on how to make CellTree with tri-state checkboxes that affect checked-state of parent/children

hi!

I'd like to make my CellTree use checkboxes in a way that checking a
parent node should check all its children and unchecking it should
uncheck all of them. Respectively checking the last unchecked children
of a node should make it checked and so on. And I'd like to display a
"third state" as well that would represent that the node's children
are mixed.

My first approach was writing a "TriStateSelectionEventManager extends
DefaultSelectionEventManager" and overriding doMultiSelection)..
However I saw that the data I need to do the trick is hidden by the
HasData<> interface I get as a parameter, I can only browse it when
debugging. The main problem was that I could not cast the HasData<> to
its implementation class as it was invisible for outside:

CellTreeNodeView.NodeCellList<> nodeCellList =
(CellTreeNodeView.NodeCellList<>) display;

I'm not sure what to do now and thought that someone could give me a
hint here.. :-)

br,
jabal

--
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


Real Estate