Interface DyntabBeanInterface

All Known Implementing Classes:
BaseDyntabCdiBean

public interface DyntabBeanInterface
Contract that all CDI beans associated with a dynamic tab must implement.

Defines the tab lifecycle methods (access/exit points), event handling (tab and application events), and DynTab association (get/set DynTab, parameters, etc.).

The default implementation is provided by BaseDyntabCdiBean.

Author:
DynTabs
See Also:
  • Method Details

    • init

      void init()
    • callAccessPointMethod

      void callAccessPointMethod()
    • callMethodActivity

      void callMethodActivity(String oldViewActivity, String newViewActivity)
    • callViewActivity

      void callViewActivity(String viewActivity)
    • observeDynTabEvent

      void observeDynTabEvent(DynTabCDIEvent dynTabEvent)
      Receives DynTab lifecycle events (dynTabAdded, dynTabRemoved, dynTabSelected). NOT a CDI @Observes method - called directly from DynTabManager.fireDynTabEvent(dyntabs.DynTabCDIEvent) which iterates through all active tabs and properly sets the TabScope for each one.
    • setActive

      @Deprecated void setActive(boolean active)
      Deprecated.
      The active flag is no longer needed for @TabScoped beans. The bean is active while it exists and is destroyed together with the tab.
    • getActive

      @Deprecated boolean getActive()
      Deprecated.
      The active flag is no longer needed for @TabScoped beans.
    • callExitPointMethod

      void callExitPointMethod()
    • observeApplicationEvent

      void observeApplicationEvent(ApplicationCDIEvent appEvent)
      Receives application events (inter-tab communication). NOT a CDI @Observes method - called directly from DynTabManager which iterates through all active tabs and properly sets the TabScope for each one.
    • setDynTab

      void setDynTab(DynTab dt)
    • getDynTab

      DynTab getDynTab()
    • getParameters

      Map getParameters()
    • getUniqueIdentifier

      String getUniqueIdentifier()
    • getDynTabId

      String getDynTabId()