Class HTMLWidget


  • public class HTMLWidget
    extends Widget
    Represents a widget with no data, it just diplays the "content" string.
    Author:
    Julie Sullivan
    • 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 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.
      • 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 class Widget
        Returns:
        a list representing the rows containing a list of objects
      • getHasResults

        public boolean getHasResults()
        Specified by:
        getHasResults in class Widget
        Returns:
        the hasResults
      • getNotAnalysed

        public int getNotAnalysed()
        Overrides:
        getNotAnalysed in class Widget
        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
        Specified by:
        process in class Widget
      • setNotAnalysed

        public void setNotAnalysed​(int notAnalysed)
        Overrides:
        setNotAnalysed in class Widget
        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 class Widget
        Returns:
        the pathquery