Package com.hybris.cockpitng.core.impl
Interface NotificationStack
-
- All Known Implementing Classes:
DefaultNotificationStack
public interface NotificationStackInterface which helps find notification id of topmost Notification Widget. When widget is a template it is displayed in popup. We can display many widget templates and in such case it is important to know where to send notifications
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPreviousId()java.lang.StringgetTopmostId()voidonNewTemplateDisplayed(WidgetInstance widgetInstance)This method is called when new widget template is displayedvoidonTemplateClosed(WidgetInstance widgetInstance)This method is called when widget template is closedvoidresetNotifierStack()Resets notifier stack - removes all notification widget's ids
-
-
-
Method Detail
-
onNewTemplateDisplayed
void onNewTemplateDisplayed(WidgetInstance widgetInstance)
This method is called when new widget template is displayed- Parameters:
widgetInstance-
-
onTemplateClosed
void onTemplateClosed(WidgetInstance widgetInstance)
This method is called when widget template is closed- Parameters:
widgetInstance-
-
getTopmostId
java.lang.String getTopmostId()
- Returns:
- notification id of topmost Notification Widget or null if stack is empty
-
getPreviousId
java.lang.String getPreviousId()
- Returns:
- notification id of second topmost Notification Widget or null if stack's has one or no elements
-
resetNotifierStack
void resetNotifierStack()
Resets notifier stack - removes all notification widget's ids
-
-