org.intermine.web.logic.widget
Class EnrichmentWidget
java.lang.Object
org.intermine.web.logic.widget.Widget
org.intermine.web.logic.widget.EnrichmentWidget
public class EnrichmentWidget
- extends Widget
| Fields inherited from class org.intermine.web.logic.widget.Widget |
config |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnrichmentWidget
public EnrichmentWidget(EnrichmentWidgetConfig config,
InterMineBag interMineBag,
ObjectStore os,
java.lang.String filter,
java.lang.String max,
java.lang.String errorCorrection)
- Parameters:
config - widget configinterMineBag - bag for this widgetos - object storeerrorCorrection - which error correction to use (Bonferroni, etc)max - maximum value to display (0 - 1)filter - filter to use (ie Ontology)
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