Class AbstractUiController<V extends UiRegularWidget>

    • Constructor Detail

      • AbstractUiController

        public AbstractUiController()
        The constructor.
    • Method Detail

      • createView

        protected abstract V createView()
        Returns:
        the new instance of the view.
      • doEmbed

        protected boolean doEmbed​(String slotId,
                                  UiController<?> childController)
        Override this method for parent controllers to embed children.
        Parameters:
        slotId - the slot ID where to embed the given child UiControllers view.
        childController - the child controller to embed.
        Returns:
        true if the embedded slot is dynamic (e.g. a new closable tab), false otherwise if static and reusable slot in the UI (default).
        See Also:
        embed(UiEmbedding, UiController)
      • hide

        public final void hide()
        This method is called when this controller was hidden (its view is replaced in the slot it was embedded by another controller).
      • onReset

        protected void onReset()
        This method gets called whenever this controller is reseted. If you keep custom state information you need to override and reset your state.
      • onShow

        protected void onShow()
        This method gets called whenever the view is shown on the screen. It can be overridden to trigger custom logic - e.g. to update data.
      • onHide

        protected void onHide()
        This method gets called whenever the view is hidden from the screen. It can be overridden to trigger custom logics or to clean up resources.