Class: PopUpMenu

Class | PopUpMenu
In: | lib/json/editor.rb
Parent: | Object

This class creates the popup menu, that opens when clicking onto the treeview.

### Methods

append_new_node change_node collapse_expand copy_node create cut_node insert_new_node paste_node_appending paste_node_inserting_before

### Included Modules

MenuExtension

### Public Instance methods

append_new_node(item)

Append a new node to the selected Hash or Array.

change_node(item)

Change the type or content of the selected node.

collapse_expand(item)

Recursively collapse/expand a subtree starting from the selected node.

copy_node(item)

Copy the selected node and its subtree, and save it into the clipboard.

create()

Create the menu.

cut_node(item)

Cut the selected node and its subtree, and save it into the clipboard.

insert_new_node(item)

Insert a new node into an Array before the selected element.

paste_node_appending(item)

Paste the data in the clipboard into the selected Array or Hash by appending it.

paste_node_inserting_before(item)

Paste the data in the clipboard into the selected Array inserting it before the selected element.

[Validate]