Interface View<C,​COMP extends java.awt.Component>

  • Type Parameters:
    C - the generic type of the controller
    COMP - the generic type of the component
    All Known Implementing Classes:
    AbstractGenericView, KeypadView, LoginView

    public interface View<C,​COMP extends java.awt.Component>
    The Interface View.
    • Method Detail

      • getComponent

        COMP getComponent()
        Gets the component.
        Returns:
        the component
      • getController

        C getController()
        Gets the controller.
        Returns:
        the controller
      • getParent

        View<?,​?> getParent()
        Gets the parent.
        Returns:
        the parent
      • hasParent

        boolean hasParent()
        Checks for parent.
        Returns:
        true, if successful
      • setComponent

        void setComponent​(COMP component)
        Sets the component.
        Parameters:
        component - the new component
      • setController

        void setController​(C controller)
        Sets the controller.
        Parameters:
        controller - the new controller