ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 8日 (月) 02:50:44 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-crs ------------------------- @@ -32,7 +32,7 @@ iter[ITEM_COLUMN] = !iter[ITEM_COLUMN] if (iter) end -With the introduction of toggle button cell renderers you actually make the Boolean column editable, which means you can interactively modify its contents, i.e. presentation of its value in the tree view. If the Boolean value is in any way related to the contents of other columns in the tree view this dependency may have to be managed too. As you will discover shortly, our example program has such a dependency. Not to bury the mere mechanics of implementing toggle button cell renderers, we will approach the toggle button renderer itself and its data dependency related issues in two steps. First we will introduce the the toggle renderer without thinking how it may effect the presentation of other data in the tree view (toggle-rndr-1.rb), and in the second example (toggle-rndr-2.rb), immediately after that, we will tackle those dependency related issues. +With the introduction of toggle button cell renderers you actually make the Boolean column editable, which means you can interactively modify its contents in the model, and subsequently its presentation in the tree view. If the Boolean value is in any way related to the contents of other columns in the tree view this dependency may have to be managed too. As you will discover shortly, our example program has such a dependency. Not to bury the mere mechanics of implementing toggle button cell renderers, we will approach the toggle button renderer itself and its data dependency related issues in two steps. First we will introduce the the toggle renderer without thinking how it may effect the presentation of other data in the tree view (toggle-rndr-1.rb), and in the second example (toggle-rndr-2.rb), immediately after that, we will tackle those dependency related issues. {{image_right("treev-crs-01.png")}}