Interface VisibilityContainerManager<T extends AbstractContainer>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int countVisible()
      Returns the number of visible containers.
      List<T> getAllVisible()
      Returns (a copy of) all currently stored (visible) containers.
      T getVisible​(int index)
      Returns the nth visible container.
      int[] getVisibleIndices()
      Returns the indices of all visible containers.
      boolean isVisible​(int index)
      Returns whether the container at the specified position is visible.
      void setVisible​(int index, boolean visible)
      Sets the specified container's visibility.
    • Method Detail

      • getAllVisible

        List<T> getAllVisible()
        Returns (a copy of) all currently stored (visible) containers. Those containers have no manager.
        Returns:
        all containers
      • getVisibleIndices

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

        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

        void setVisible​(int index,
                        boolean visible)
        Sets the specified container's visibility.
        Parameters:
        index - the index of the container
        visible - if true then the container will be made visible
      • getVisible

        T 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

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