Class ReportContainerManager

    • Constructor Detail

      • ReportContainerManager

        public ReportContainerManager​(AbstractDatabaseConnection dbcon)
        Initializes the manager.
        Parameters:
        dbcon - the database context
    • Method Detail

      • getVisibleIndices

        public int[] getVisibleIndices()
        Returns the indices of all visible containers.
        Returns:
        all containers
      • getAllVisible

        public List<ReportContainer> getAllVisible()
        Returns (a copy of) all currently stored containers. Those containers have no manager.
        Returns:
        all containers
      • isVisible

        public boolean isVisible​(int index)
        Returns whether the container at the specified position is visible.
        Parameters:
        index - the container's position
        Returns:
        true if the container is visible
      • setVisible

        public void setVisible​(int index,
                               boolean visible)
        Sets the specified container's visibility. Uses the scripting engine if the owner is derived from SpectrumPanel.
        Parameters:
        index - the index of the container
        visible - if true then the container will be made visible
        See Also:
        SequencePanel
      • getVisible

        public ReportContainer getVisible​(int index)
        Returns the nth visible container.
        Parameters:
        index - the index (relates only to the visible containers!)
        Returns:
        the container, null if index out of range
      • countVisible

        public int countVisible()
        Returns the number of visible containers.
        Returns:
        the number of visible containers
      • indexOf

        public int indexOf​(String id)
        Determines the index of the reports with the specified ID.
        Specified by:
        indexOf in interface NamedContainerManager
        Parameters:
        id - the ID of the report
        Returns:
        the index of the report or -1 if not found
      • isMatch

        protected boolean isMatch​(ReportContainer cont,
                                  String search,
                                  boolean regExp)
        Returns whether the container matches the current search.
        Specified by:
        isMatch in class AbstractContainerManager<ReportContainer>
        Parameters:
        cont - the container to check
        search - the search string
        regExp - whether to perform regular expression matching