Package com.hybris.cockpitng.engine.impl
Class DefaultModalWindowStack
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.DefaultModalWindowStack
-
- All Implemented Interfaces:
ModalWindowStack,java.io.Serializable
public class DefaultModalWindowStack extends java.lang.Object implements ModalWindowStack, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_BASE_INDEXprotected static java.lang.StringMODEL_Z_INDEX
-
Constructor Summary
Constructors Constructor Description DefaultModalWindowStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.IntegerextractExistingZIndex(java.util.Map model)java.lang.IntegergetBaseZIndex()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 stackvoidsetBaseZIndex(java.lang.Integer baseZIndex)
-
-
-
Field Detail
-
MODEL_Z_INDEX
protected static final java.lang.String MODEL_Z_INDEX
- See Also:
- Constant Field Values
-
DEFAULT_BASE_INDEX
protected static final int DEFAULT_BASE_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getModalWindowZIndex
public int getModalWindowZIndex(WidgetInstance widgetInstance)
Description copied from interface:ModalWindowStackProvides z-index for given widget instance. If widget has already z-index assigned the same will be returned.- Specified by:
getModalWindowZIndexin interfaceModalWindowStack- Parameters:
widgetInstance- widget instance.- Returns:
- z-index which should be used to show window.
-
onWindowClosed
public void onWindowClosed(WidgetInstance widgetInstance)
Description copied from interface:ModalWindowStackRemoves widget's z-index from stack and it's model.- Specified by:
onWindowClosedin interfaceModalWindowStack- Parameters:
widgetInstance- widget instance.
-
resetModalWindowStack
public void resetModalWindowStack()
Description copied from interface:ModalWindowStackResets z-index stack- Specified by:
resetModalWindowStackin interfaceModalWindowStack
-
extractExistingZIndex
protected java.lang.Integer extractExistingZIndex(java.util.Map model)
-
setBaseZIndex
public void setBaseZIndex(java.lang.Integer baseZIndex)
-
getBaseZIndex
public java.lang.Integer getBaseZIndex()
-
-