Interface WidgetAdapter<T extends WidgetModel,​U extends WidgetController>

    • Method Detail

      • setWidgetModel

        void setWidgetModel​(T model)
        Sets the widget model to model.
        Parameters:
        model - widget model
      • getWidgetModel

        T getWidgetModel()
        Returns the widget model.
        Returns:
        the widget model
      • setWidgetController

        void setWidgetController​(U controller)
        Sets the widget controller to controller.
        Parameters:
        controller - the widget controller
      • getWidgetController

        U getWidgetController()
        Returns the widget controller.
        Returns:
        the widget controller
      • setControllerCtx

        void setControllerCtx​(java.lang.String ctx)
        Sets the widget controller context code to ctx.
        Parameters:
        ctx - widget controller context code
      • getControllerCtx

        java.lang.String getControllerCtx()
        Returns the widget controller context code.
        Returns:
        widget controller context code
      • setAutoControllerEnabled

        void setAutoControllerEnabled​(boolean autoController)
        Sets whether this adapter allows the WidgetController to be set automatically.
        Parameters:
        autoController - true means enabled, false disabled
      • isAutoControllerEnabled

        boolean isAutoControllerEnabled()
        Returns whether this adapter allows WidgetController to be set automatically.
        Returns:
        true if enabled, false otherwise