Class | JSONTreeView |
In: |
lib/json/editor.rb
|
Parent: | Gtk::TreeView |
This class inherits from Gtk::TreeView, to configure it and to add a lot of behaviour to it.
expanded | [RW] | Returns true, if nodes are autoexpanding, false otherwise. |
window | [R] | Returns the MainWindow instance of this JSONTreeView. |
Creates a JSONTreeView instance, the parameter window is a MainWindow instance and used for self delegation.
Ask for an order criteria for sorting, using x for the element in question. Returns the order criterium, and true/false for reverse sorting.
Create a type node with content content, and add it to parent in the model. If parent is nil, create a new model and put it into the editor treeview.