ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 9日 (火) 04:01:12 JST
------------------------- REMOTE_ADDR = 184.145.82.7 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-crs ------------------------- @@ -347,7 +347,7 @@ iter[GItm::BUY_INDEX] = any_child_set_to_buy(iter) if iter.has_child? end -Here the helper method((*'any_child_set_to_buy'*))is used to inspect all the children whether any one's child has the check-box checked and accordingly request the modification of only the product category control rows, i.e. the parent nodes with children rows, so the control record (product category row) will convey the '/any checked/ or /all unchecked/' status of its children. We need the helper method to traverse all the children for the pertinent product category and return true if any child has 'Buy' value checked and false otherwise: +Here the helper method((*'any_child_set_to_buy'*))is used to inspect all the children whether any one's child has the check-box checked and accordingly request the modification of only the product category control rows, i.e. the parent nodes with children rows, so the control record (product category row) will convey the '/any checked/ or /all unchecked/' status of its children. We need the helper method to traverse all the children for the pertinent product category and return true if any child has 'Buy' value checked and false otherwise (indeed, all the children are traversed only if the latter is true): def any_child_set_to_buy(parent) tmp_iter = parent.first_child