/* ************************************************************************ #module(Smokeping) ************************************************************************ */ /** * a widget showing the smokeping target tree */ qx.Class.define('Smokeping.ui.TargetTree', { extend: qx.ui.tree.Tree, /* ***************************************************************************** CONSTRUCTOR ***************************************************************************** */ /** * @param root_node {String} Name of the root node * where will we find our RPC server. * * @param rpc {rpcObject} An rpc object providing access to the Smokeping service */ construct: function (rpc) { with(this){ base(arguments,'root node'); set({ backgroundColor: 'white', border: new qx.ui.core.Border(1,'solid','#a0a0a0'), overflow: 'auto', width: '100%', height: '100%', padding: 5, hideNode: true }); getManager().addEventListener('changeSelection', this._send_event,this) }; var self = this; var fill_tree = function(data,exc,id){ if (exc == null){ var nodes = data.length; for(var i=0;i 0) { if ( e.getData()[0].basename == 'TreeFolder' ){ qx.event.message.Bus.dispatch('sp.menu.folder',e.getData()[0].getUserData('ids')); } } } } });