ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 27日 (木) 03:02:37 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -549,7 +549,7 @@ == Tedious Job of Loading Multidimensional Tree Store -Loading initial values into a tree store may become a daunting task for large tree hierarchies. We usually can help ourselves with some kind of organized structure, most likely a nicely laid out array. Following is such an example. For instance we can design a table where the hierarchy is defined as a structure of nested hierarchies of arrays. The signature of this design is the last element in each row, namely we define it either to be the array of children or nil: +Loading initial values into a tree store may become a daunting task for large tree hierarchies. We usually can help ourselves with some kind of organized structure of ASCII data, most likely a nicely laid out array. Following is such an example. For instance we can design a table where the hierarchy is defined as a structure of nested hierarchies of arrays. The signature of this design is the last element in each row, namely we define it either to be the array of children or nil: init_arr = [[ e11, e12, e13, nil ], [e21, e22, e23, [[...],[...]...], ... [en1, en2, en3, nil]]