Package org.gnome.gtk

Class TreeStore

java.lang.Object
All Implemented Interfaces:
Proxy, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable

@Generated("io.github.jwharm.JavaGI") @Deprecated public class TreeStore extends GObject implements Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable
Deprecated.
A tree-like data structure that can be used with the TreeView.

The GtkTreeStore object is a list model for use with a GtkTreeView widget. It implements the TreeModel interface, and consequently, can use all of the methods available there. It also implements the TreeSortable interface so it can be sorted by the view. Finally, it also implements the tree Gtk.TreeDragSource and Gtk.TreeDragDest interfaces.

GtkTreeStore is deprecated since GTK 4.10, and should not be used in newly written code. You should use TreeListModel for a tree-like model object.

GtkTreeStore as GtkBuildable
The GtkTreeStore implementation of the GtkBuildable interface allows to specify the model columns with a <columns> element that may contain multiple <column> elements, each specifying one model column. The “type” attribute specifies the data type for the column.

An example of a UI Definition fragment for a tree store:

<object class="GtkTreeStore">
   <columns>
     <column type="gchararray"/>
     <column type="gchararray"/>
     <column type="gint"/>
   </columns>
 </object>