flex2 component - Tree with checkbox

Just made this for the project I’m currently working on, main features include:
-when branch selected, all child node will be selected
-when branch is de-selected, all child node will be de-selected too
-when some of the children were selected but some are not, branch(parent) node will be greyed out.
-when the Tree first initialized, branch will restore to correct status (to grey out, select, or not)
Thanks to the new framework, it’s quite easy to made this kind of stuff.
by admin


6 Comments Add your own
1. cmanwalking&hellip | September 16th, 2006 at 1:18 pm
这个是FLEX2自带的么?还是FB2提供的?
2. jeremy&hellip | September 16th, 2006 at 3:49 pm
Tree, checkbox 都是 Flex 內建的,再加上自製的 item renderer 與 programmatic skin.
3. deng&hellip | September 16th, 2006 at 7:29 pm
能不能介绍下制作原理??这里介绍的两个都没有制作原理:
http://www.flex2.org/node/54
4. jeremy&hellip | September 18th, 2006 at 12:22 am
就是用自製的 item renderer 取代 Tree 原本使用的,然後在這個 renderer 裏的 createChildren()建立一個 checkbox元件,再建一個新的 skin class 來畫出灰色的 checkbox 背景(代表未全部選取),這樣就差不多了。
至於選取的行為就是用 recursive 去跑一輪就好。
5. Mithun&hellip | February 24th, 2008 at 12:18 pm
Can you please give me the source code of this component?
Thanks in advance!
6. k&hellip | September 21st, 2008 at 9:49 pm
不是recursive
是recursion才对
Trackback this post | Subscribe to the comments via RSS Feed