org.intermine.web.logic.widget
Class EnrichmentWidget

java.lang.Object
  extended by org.intermine.web.logic.widget.Widget
      extended by org.intermine.web.logic.widget.EnrichmentWidget

public class EnrichmentWidget
extends Widget


Field Summary
 
Fields inherited from class org.intermine.web.logic.widget.Widget
config
 
Constructor Summary
EnrichmentWidget(EnrichmentWidgetConfig config, InterMineBag interMineBag, ObjectStore os, java.lang.String filter, java.lang.String max, java.lang.String errorCorrection)
           
 
Method Summary
 java.util.List<java.lang.String> getColumns()
           
 java.util.List getElementInList()
          checks if elem is in bag
 java.util.List<java.util.List<java.lang.String>> getExportResults(java.lang.String[] selected)
          
 java.util.List<java.util.List<java.lang.String[]>> getFlattenedResults()
          
 boolean getHasResults()
          
 int getNotAnalysed()
          
 void process()
          Process the data and create the widget
 void setNotAnalysed(int notAnalysed)
          
 
Methods inherited from class org.intermine.web.logic.widget.Widget
getConfigId, getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnrichmentWidget

public EnrichmentWidget(EnrichmentWidgetConfig config,
                        InterMineBag interMineBag,
                        ObjectStore os,
                        java.lang.String filter,
                        java.lang.String max,
                        java.lang.String errorCorrection)
Parameters:
config - widget config
interMineBag - bag for this widget
os - object store
errorCorrection - which error correction to use (Bonferroni, etc)
max - maximum value to display (0 - 1)
filter - filter to use (ie Ontology)
Method Detail

process

public void process()
Process the data and create the widget

Specified by:
process in class Widget

getElementInList

public java.util.List getElementInList()
checks if elem is in bag

Specified by:
getElementInList in class Widget
Returns:
true if elem is in bag

getNotAnalysed

public int getNotAnalysed()

Specified by:
getNotAnalysed in class Widget
Returns:
the number of objects not analysed in this widget

setNotAnalysed

public void setNotAnalysed(int notAnalysed)

Specified by:
setNotAnalysed in class Widget
Parameters:
notAnalysed - the number of objects not analysed in this widget

getHasResults

public boolean getHasResults()

Specified by:
getHasResults in class Widget
Returns:
the hasResults

getExportResults

public java.util.List<java.util.List<java.lang.String>> getExportResults(java.lang.String[] selected)
                                                                  throws java.lang.Exception

Specified by:
getExportResults in class Widget
Parameters:
selected - the list of checked items from the form
Returns:
the checked items in export format
Throws:
java.lang.Exception - something has gone wrong. oh no.

getFlattenedResults

public java.util.List<java.util.List<java.lang.String[]>> getFlattenedResults()

Specified by:
getFlattenedResults in class Widget
Returns:
results of widget

getColumns

public java.util.List<java.lang.String> getColumns()
Returns:
List of column labels