gwt /
gwt /
e1139ae54be241d20af83f59a7da8240a4d4df8b Adding TreeNode API to CellTree and CellBrowser, which allows users to programmatically open/close tree nodes. Similar to the way CellList works, a TreeNode primarily operates on its children, and it is only accessible if the node is open. That is important because it means that implementors do not need to create a TreeNode for every leaf, as is the case with CellBrowser. TreeNodes are destroyed when they are closed or otherwise removed from the tree. However, if new data is pushed into the tree, a TreeNode will not be destroyed unless the new data set does not contain the nodes value. CellTree and CellBrowser now implement HasOpen/CloseHandlers. TreeNodes can return the value of the node itself, allowing users to respond to open/close events appropriately. This patch also adds a bunch of unit tests, and fixes some subtle bugs.
Design Doc:
https://wave.google.com/wave/#restored:wave:googlewave.com%252Fw%252BAuahvuinA
Review at http://gwt-code-reviews.appspot.com/796801
Review by: rice@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8642 8db76d5a-ed1c-0410-87a9-c151d255dfc7
12 files changed