2.1.3.10.3.1. pyfx.view.json_lib.object.object_node.ObjectNode¶
- class ObjectNode(key: str, value: dict, node_factory, parent=None, display_key=True)¶
Implementation of JSON object type node. Aside from fields in a JSONNode, it contains the following elements:
- children_nodes: dict to store correspondent node, note this may not have
the same order as children_key_list, as each node of children_nodes is created during runtime.
- children_key_list: internal type to keep track of the insertion ordered
key list. Thus keep track of the next, previous node of each child.
Methods
__init__(key, value, node_factory[, parent, ...])collapse_all()get_depth()get_end_node()get_first_child()get_key()get_last_child()get_parent()get_root()lazy getter for root
get_start_widget()get_unexpanded_widget()get_value()get_widget()cache and return the widget for the current node
has_children()is_display_key()is_end_node()is_expanded()is_root()load_end_node()load_start_widget()load_unexpanded_widget()load_widget()next_child(key)next_sibling()prev_child(key)prev_sibling()toggle_expanded()