Interface Presentable

  • All Implemented Interfaces:

    
    public interface Presentable<T extends Presentation<?>>
    
                        

    Represents a component that can be presented on the screen.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum Presentable.State

      Represents the current visibility & activeness of the presentable.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit show() Shows the presentable on the screen.
      abstract Unit hide() Hides the presentable from the screen.
      abstract Unit dismiss() Dismisses the presentable from the screen.
      abstract Presentable.State getState() Returns the current State of the presentable.
      abstract T getPresentation() Returns the presentation associated with the presentable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • show

         abstract Unit show()

        Shows the presentable on the screen.

      • hide

         abstract Unit hide()

        Hides the presentable from the screen. Contents of the presentable can be restored by calling show after this operation.

      • dismiss

         abstract Unit dismiss()

        Dismisses the presentable from the screen. Contents of the presentable are not retained after this operation.

      • getPresentation

         abstract T getPresentation()

        Returns the presentation associated with the presentable.

        Returns:

        the Presentation associated with the presentable