1 /**
  2  * @author Amit Kumar
  3  * @date 12/01/2008
  4  * @extends Workbench.component.Component
  5  * @description This component displays Concordance. It is a wrapper for the concordance.html
  6  * where the meat of the stuff happens. This is just a skeleton
  7  */
  8 
  9 Monk.component.Concordance = function(args) {
 10     Monk.component.Concordance.superclass.constructor.call(this, args);
 11 }
 12 
 13 
 14 
 15 Workbench.extend(Monk.component.Concordance , Workbench.component.Component, {
 16 
 17     label : "Concordance",
 18     description : "This component is for displaying concordance",
 19     "window" : this.window,
 20     handle : function(monkEvent, data){
 21         if (monkEvent.instanceOf(Monk.event.chunk.ChunkSelected)) {
 22             //Ext.Msg.alert('Data', 'Heard the message. chartType: ' + data.chartType);           
 23         }else if (monkEvent.instanceOf(Monk.event.chunk.ChunkChecked) || 
 24         monkEvent.instanceOf(Monk.event.chunk.ChunkChecked) || 
 25         monkEvent.instanceOf(Monk.event.workset.WorksetReset) || 
 26         monkEvent.instanceOf(Monk.event.workset.WorksetCreated)) {
 27             // warn about dirty data
 28             Ext.get("worksetDirty").setVisible(true);
 29         }else if(monkEvent.instanceOf(Monk.event.project.WorksetsReceived)){
 30         	Ext.get("worksetDirty").setVisible(false);
 31         }else if(monkEvent.instanceOf(Monk.event.workset.WorksetSaved )){
 32         	Ext.get("worksetDirty").setVisible(false);
 33         }
 34         
 35     }
 36  
 37 });