ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 20日 (木) 02:33:52 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -35,7 +35,7 @@ -The model is represented as a hierarchical tree of strongly-typed, columnar data, where the type of data found in a column is defined by a Ruby Class (ie. Object, Integer, Float, String, Hash, Gdk::Pixbuf, etc.). Not unlike in database tables. the types are homogeneous per column across all rows (nodes). It is not hard to switch from a database table to a list. +The model is represented as a hierarchical tree of strongly-typed, columnar data, where the type of data found in a column is defined by a Ruby Class (ie. Object, Integer, Float, String, Hash, Gdk::Pixbuf, etc.). Not unlike in database tables, the types are homogeneous per column across all rows (nodes). It is not hard to switch from a database table to a list. Gtk::ListStore allows you to create a list of elements with multiple columns. Each row is a child of the root node, so only one level of rows is displayed. But as already mentioned Gtk::ListStore is basically a tree structure that has no hierarchy. It is only provided because faster algorithms exist for interacting with the models that do not have any children items.