Class VisualizationList

    • Field Detail

      • NODE_VISUALIZATION_LIST

        public static final java.lang.String NODE_VISUALIZATION_LIST
        See Also:
        Constant Field Values
      • ATT_NAME

        protected static final java.lang.String ATT_NAME
        xml attribute name for the name of the visualization-list
        See Also:
        Constant Field Values
      • ATT_VIEW_MODE

        protected static final java.lang.String ATT_VIEW_MODE
        xml attribute name for the view-mode of the visualization-list
        See Also:
        Constant Field Values
      • ATT_SHOW_IN_WEB

        protected static final java.lang.String ATT_SHOW_IN_WEB
        xml attribute name for the show-in-web property of the visualization-list
        See Also:
        Constant Field Values
    • Constructor Detail

      • VisualizationList

        public VisualizationList()
    • Method Detail

      • getKeyAttribute

        protected java.lang.String getKeyAttribute()
        Description copied from class: AbstractConfigurationElement
        This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override the getKey and setKey methods.
        Overrides:
        getKeyAttribute in class AbstractConfigurationElementList
      • getName

        public java.lang.String getName()
        Returns the name of the visualization list.
        This name will be used to show a different icon while folder browsing and on the hostory list
        Returns:
        the name of the visualization list.
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the visualization list.
        This name will be used to show a different icon while folder browsing and on the hostory list
        Parameters:
        name - the name of the visualization list
      • getViewMode

        public int getViewMode()
        Returns the view mode for the VisualizationList.
        This value will be used to display a specific icon while folder browsing.
        The values should not overlap with the values from EnumWebReportViewMode
        Returns:
        the view mode.
      • setViewMode

        public void setViewMode​(int value)
        Sets the view mode for the VisualizationList.
        This value will be used to display a specific icon while folder browsing.
        The values should not overlap with the values from EnumWebReportViewMode
        Parameters:
        value - The view mode.
      • getShowInWeb

        public boolean getShowInWeb()
        Whether the list is supposed to be displayed in Web.
        False for mobile.
        Returns:
        Whether the list is supposed to be displayed in Web.
      • setShowInWeb

        public void setShowInWeb​(boolean value)
        Sets Whether the list is supposed to be displayed in Web.
        False for mobile.
        Parameters:
        value - Whether the list is supposed to be displayed in Web.
      • newVisualization

        public Visualization newVisualization​(java.lang.String styleName,
                                              java.lang.String description)
        Creates a new visualization and adds it to the list of visualizations that belong to this list.
        Parameters:
        styleName - The style name associated with this visualization
        Returns:
        The new visualization instance.
      • getVisualization

        public Visualization getVisualization​(java.lang.String key)
        Returns a Visualization from the visualization list with the key specified
        Parameters:
        key - the key of the Visualization
        Returns:
        a Visualization from the visualization list with the key specified
      • getVisualization

        public Visualization getVisualization​(int index)
        Returns a Visualization from the visualization list with the index specified
        Parameters:
        index - the index of the Visualization
        Returns:
        a Visualization from the visualization list with the index specified
      • sort

        public void sort​(boolean accending,
                         Messages msgs)
        Sorts the list of visualizations
        Parameters:
        accending - whether to sort ascending or descending