function WidgetDataWidget(lona_window) {
    this.lona_window = lona_window;

    this.setup = function() {
        console.log('>> setup', this.nodes);
    };

    this.deconstruct = function() {
        console.log('>> deconstruct', this.nodes);
    };

    this.nodes_updated = function() {
        console.log('>> nodes updated', this.nodes);
    };

    this.data_updated = function() {
        this.root_node.childNodes[1].innerHTML = JSON.stringify(this.data);
    };
};

Lona.register_widget_class('widget_data', WidgetDataWidget);
