/* ************************************************************************ #module(Smokeping) ************************************************************************ */ /** * a widget showing the smokeping target tree */ qx.Class.define('Smokeping.ui.TargetTree', { extend: qx.ui.tree.Tree, /* ***************************************************************************** CONSTRUCTOR ***************************************************************************** */ construct: function () { 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')); } } } } });