Package com.hybris.cockpitng.core.impl
Class DefaultNotificationStack
- java.lang.Object
-
- com.hybris.cockpitng.core.impl.DefaultNotificationStack
-
- All Implemented Interfaces:
NotificationStack,java.io.Serializable
public class DefaultNotificationStack extends java.lang.Object implements NotificationStack, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultNotificationStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPreviousId()java.lang.StringgetTopmostId()voidonNewTemplateDisplayed(WidgetInstance wi)This method is called when new widget template is displayedvoidonTemplateClosed(WidgetInstance wi)This method is called when widget template is closedvoidresetNotifierStack()Resets notifier stack - removes all notification widget's ids
-
-
-
Method Detail
-
onNewTemplateDisplayed
public void onNewTemplateDisplayed(WidgetInstance wi)
Description copied from interface:NotificationStackThis method is called when new widget template is displayed- Specified by:
onNewTemplateDisplayedin interfaceNotificationStack
-
onTemplateClosed
public void onTemplateClosed(WidgetInstance wi)
Description copied from interface:NotificationStackThis method is called when widget template is closed- Specified by:
onTemplateClosedin interfaceNotificationStack
-
getTopmostId
public java.lang.String getTopmostId()
- Specified by:
getTopmostIdin interfaceNotificationStack- Returns:
- notification id of topmost Notification Widget or null if stack is empty
-
getPreviousId
public java.lang.String getPreviousId()
- Specified by:
getPreviousIdin interfaceNotificationStack- Returns:
- notification id of second topmost Notification Widget or null if stack's has one or no elements
-
resetNotifierStack
public void resetNotifierStack()
Description copied from interface:NotificationStackResets notifier stack - removes all notification widget's ids- Specified by:
resetNotifierStackin interfaceNotificationStack
-
-