Package com.hybris.cockpitng.engine
Interface ModalWindowStack
-
- All Known Implementing Classes:
DefaultModalWindowStack
public interface ModalWindowStackProvides z-index for modal windows to preserve theirs order after refresh.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetModalWindowZIndex(WidgetInstance widgetInstance)Provides z-index for given widget instance.voidonWindowClosed(WidgetInstance widgetInstance)Removes widget's z-index from stack and it's model.voidresetModalWindowStack()Resets z-index stack
-
-
-
Method Detail
-
getModalWindowZIndex
int getModalWindowZIndex(WidgetInstance widgetInstance)
Provides z-index for given widget instance. If widget has already z-index assigned the same will be returned.- Parameters:
widgetInstance- widget instance.- Returns:
- z-index which should be used to show window.
-
onWindowClosed
void onWindowClosed(WidgetInstance widgetInstance)
Removes widget's z-index from stack and it's model.- Parameters:
widgetInstance- widget instance.
-
resetModalWindowStack
void resetModalWindowStack()
Resets z-index stack
-
-