2.1.3.2.1. pyfx.view.json_lib.json_composite_end_node.JSONCompositeEndNode

class JSONCompositeEndNode(start_node)

Base implementation to represent an ending of a composite node.

This is mostly used to better distinguish between a start widget and a end widget in a composite node, while iterating the tree in JSONListWalker.

For example, with an object JSON structure:

1{
2  "key": "value"
3}

When user clicks ‘}’ by mouse, in order to know the current focus position is at the end of a composite node, we need to store this information somewhere different from the node represents ‘{‘.

Methods

__init__(start_node)

collapse_all()

get_depth()

get_last_child()

get_parent()

get_start_node()

get_widget()

is_end_node()

is_expanded()

load_widget()

next_sibling()

prev_sibling()

toggle_expanded()