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.

Methods

Included Modules

Gtk

Attributes

expanded  [RW]  Returns true, if nodes are autoexpanding, false otherwise.
window  [R]  Returns the MainWindow instance of this JSONTreeView.

Public Class methods

Creates a JSONTreeView instance, the parameter window is a MainWindow instance and used for self delegation.

Public Instance methods

Ask for a find term to search for in the tree. Returns the term as a string.

Ask for a hash key, value pair to be added to the Hash node parent.

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.

Expand or collapse row pointed to by iter according to the expanded attribute.

[Validate]