Interface ViewService

All Known Implementing Classes:
TerminalUI

public interface ViewService
Provides services for a View like handling modals.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a current modal view.
    void
    setFocus(View view)
    Sets a view to be focused.
    void
    setModal(View view)
    Sets a new modal view.
  • Method Details

    • getModal

      @Nullable View getModal()
      Gets a current modal view.
      Returns:
      current modal view
    • setModal

      void setModal(@Nullable View view)
      Sets a new modal view. Setting modal to null clears existing modal.
      Parameters:
      view - a view to use as modal
    • setFocus

      void setFocus(@Nullable View view)
      Sets a view to be focused. Setting focus to null clears focused view.
      Parameters:
      view - a view to be focused