Package dyntabs.interfaces
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 Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcallMethodActivity(String oldViewActivity, String newViewActivity) voidcallViewActivity(String viewActivity) booleanDeprecated.voidinit()voidobserveApplicationEvent(ApplicationCDIEvent appEvent) Receives application events (inter-tab communication).voidobserveDynTabEvent(DynTabCDIEvent dynTabEvent) Receives DynTab lifecycle events (dynTabAdded, dynTabRemoved, dynTabSelected).voidsetActive(boolean active) Deprecated.The active flag is no longer needed for@TabScopedbeans.void
-
Method Details
-
init
void init() -
callAccessPointMethod
void callAccessPointMethod() -
callMethodActivity
-
callViewActivity
-
observeDynTabEvent
Receives DynTab lifecycle events (dynTabAdded, dynTabRemoved, dynTabSelected). NOT a CDI@Observesmethod - called directly fromDynTabManager.fireDynTabEvent(dyntabs.DynTabCDIEvent)which iterates through all active tabs and properly sets the TabScope for each one. -
setActive
Deprecated.The active flag is no longer needed for@TabScopedbeans. The bean is active while it exists and is destroyed together with the tab. -
getActive
Deprecated.The active flag is no longer needed for@TabScopedbeans. -
callExitPointMethod
void callExitPointMethod() -
observeApplicationEvent
Receives application events (inter-tab communication). NOT a CDI@Observesmethod - called directly fromDynTabManagerwhich iterates through all active tabs and properly sets the TabScope for each one. -
setDynTab
-
getDynTab
DynTab getDynTab() -
getParameters
Map getParameters() -
getUniqueIdentifier
String getUniqueIdentifier() -
getDynTabId
String getDynTabId()
-
@TabScopedbeans.