Package org.intermine.web.logic.widget
Class HTMLWidget
- java.lang.Object
-
- org.intermine.web.logic.widget.Widget
-
- org.intermine.web.logic.widget.HTMLWidget
-
public class HTMLWidget extends Widget
Represents a widget with no data, it just diplays the "content" string.- Author:
- Julie Sullivan
-
-
Field Summary
-
Fields inherited from class org.intermine.web.logic.widget.Widget
bag, config, ids, notAnalysed, os, poplationCount
-
-
Constructor Summary
Constructors Constructor Description HTMLWidget(WidgetConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<java.lang.String>>
getExportResults(java.lang.String[] selected)
boolean
getHasResults()
int
getNotAnalysed()
PathQuery
getPathQuery()
Return the PathQuery generated dynamically by the attribute views in the configuration filejava.util.List<java.util.List<java.lang.Object>>
getResults()
Return the result that represents the data from this widget.void
process()
Process the data and create the widgetvoid
setNotAnalysed(int notAnalysed)
-
Methods inherited from class org.intermine.web.logic.widget.Widget
createPathQueryView, getConfigId, getPopulationCount, getTitle, setPopulationCount
-
-
-
-
Constructor Detail
-
HTMLWidget
public HTMLWidget(WidgetConfig config)
- Parameters:
config
- widget config
-
-
Method Detail
-
getExportResults
public java.util.List<java.util.List<java.lang.String>> getExportResults(java.lang.String[] selected) throws java.lang.Exception
- Specified by:
getExportResults
in classWidget
- 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.
-
getResults
public java.util.List<java.util.List<java.lang.Object>> getResults()
Description copied from class:Widget
Return the result that represents the data from this widget. Each row is represented as a list of Object- Specified by:
getResults
in classWidget
- Returns:
- a list representing the rows containing a list of objects
-
getHasResults
public boolean getHasResults()
- Specified by:
getHasResults
in classWidget
- Returns:
- the hasResults
-
getNotAnalysed
public int getNotAnalysed()
- Overrides:
getNotAnalysed
in classWidget
- Returns:
- the number of objects not analysed in this widget
-
process
public void process()
Description copied from class:Widget
Process the data and create the widget
-
setNotAnalysed
public void setNotAnalysed(int notAnalysed)
- Overrides:
setNotAnalysed
in classWidget
- Parameters:
notAnalysed
- the number of objects not analysed in this widget
-
getPathQuery
public PathQuery getPathQuery()
Description copied from class:Widget
Return the PathQuery generated dynamically by the attribute views in the configuration file- Specified by:
getPathQuery
in classWidget
- Returns:
- the pathquery
-
-