Interface VisibilityController

  • All Known Implementing Classes:
    DefaultVisibilityController

    public interface VisibilityController
    Implementations controll the visibility of a view.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void hide​(boolean userInteraction)
      Called when the controlled view should be made invisibl
      void interactionStarted()
      Call this method when the user starts interacting with the view under control.
      void interactionStopped()
      Call this method when the user stopped interacting with the component under control.
      boolean isVisible()  
      void show​(boolean userInteraction)
      Called when the controlled view should be made visible
    • Method Detail

      • show

        void show​(boolean userInteraction)
        Called when the controlled view should be made visible
        Parameters:
        userInteraction - Indicates that the call was due to a user interaction
      • hide

        void hide​(boolean userInteraction)
        Called when the controlled view should be made invisibl
        Parameters:
        userInteraction - Indicates that the call was due to a user interaction
      • isVisible

        boolean isVisible()
        Returns:
        True if the view is visible or about to become visible, i.e. an animation is running that will make the view visible when finished
      • interactionStarted

        void interactionStarted()
        Call this method when the user starts interacting with the view under control. This should disable for example any auto-hiding function.
      • interactionStopped

        void interactionStopped()
        Call this method when the user stopped interacting with the component under control.