1 /* decision-tree.js */ 2 3 Monk.component.DecisionTreeComponent = function(args) { 4 // call the constructor for the superclass, i.e. Workbench.component.Component 5 Monk.component.DecisionTreeComponent.superclass.constructor.call(this, args); 6 } 7 8 // overwrite Workbench.component.Component methods & properties and add custom methods 9 Workbench.extend(Monk.component.DecisionTreeComponent, Workbench.component.Component, { 10 11 label : "Decision Tree", 12 13 description : "decision tree", 14 15 // this is required in order to associate the correct window with the component 16 // since all components reside in IFRAMEs 17 "window" : this.window, 18 19 // the handle method of every component gets called when a Monk.event is sent to the Workbench.component.Manager. 20 // here the component reacts only to those events it is interested in 21 handle : function(monkEvent, data) { 22 if(monkEvent.instanceOf(Monk.event.CollectionsMetadataHierarchyLoaded)) { 23 } 24 } 25 });