Class ConfigurableFlowValidationResultsPopup
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Window
-
- com.hybris.cockpitng.components.validation.DefaultValidationResultsPopup
-
- com.hybris.cockpitng.widgets.configurableflow.validation.ConfigurableFlowValidationResultsPopup
-
- All Implemented Interfaces:
Cleanable,Initializable,java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.IdSpace,org.zkoss.zk.ui.sys.ComponentCtrl,org.zkoss.zul.ext.Framable
public class ConfigurableFlowValidationResultsPopup extends DefaultValidationResultsPopup
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hybris.cockpitng.components.validation.DefaultValidationResultsPopup
DefaultValidationResultsPopup.HorizontalAlignment, DefaultValidationResultsPopup.VerticalAlignment
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringPOPUP_LEFT_POSITIONprotected static java.lang.StringSCLASS_WIZARD_VALIDATION_POPUP-
Fields inherited from class com.hybris.cockpitng.components.validation.DefaultValidationResultsPopup
EVENT_ON_HEIGHT_REQUEST
-
-
Constructor Summary
Constructors Constructor Description ConfigurableFlowValidationResultsPopup(ValidatableContainer container, org.zkoss.zul.Listbox resultsList, java.util.function.BiConsumer<java.lang.String,ValidationResult> popupCtrlActionConsumer)Creates wizard validation popup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetConfirmationLabel()protected voidhandleCoordinates(PopupCoordinates coordinates)protected voidinitOkListener(java.util.function.BiConsumer<java.lang.String,ValidationResult> popupCtrlActionConsumer)protected booleanisCtrlAction(java.lang.String actionId)voidrecalculatePosition()Recalculates popup's window position on the screen.protected voidrefreshPosition()voidupdateValidationPopupAnchor(java.util.Map<java.lang.String,org.zkoss.zul.Button> validationPopupAnchors)Updates popup anchor with a button's parent.voidupdateValidationPopupAnchor(org.zkoss.zk.ui.Component component)Updates popup anchor with given component.voidupdateValidationPopupAnchor(org.zkoss.zul.Button button, java.lang.String action)Updates popup anchor with given button's parent.-
Methods inherited from class com.hybris.cockpitng.components.validation.DefaultValidationResultsPopup
addOkListener, cleanup, createComponents, getContainer, getHorizontalAlignment, getMapper, getResults, getVerticalAlignment, initialize, initializeComponents, installListeners, layoutComponents, sendHeightRequestEvent, setHorizontalAlignment, setParent, setVerticalAlignment, showPopup, updatePositionRelativelyToParent
-
Methods inherited from class org.zkoss.zul.Window
beforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onClose, onModal, onPageDetached, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisible
-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SCLASS_WIZARD_VALIDATION_POPUP
protected static final java.lang.String SCLASS_WIZARD_VALIDATION_POPUP
- See Also:
- Constant Field Values
-
POPUP_LEFT_POSITION
protected static final java.lang.String POPUP_LEFT_POSITION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigurableFlowValidationResultsPopup
public ConfigurableFlowValidationResultsPopup(ValidatableContainer container, org.zkoss.zul.Listbox resultsList, java.util.function.BiConsumer<java.lang.String,ValidationResult> popupCtrlActionConsumer)
Creates wizard validation popup.- Parameters:
container- validation container.resultsList- list of results.popupCtrlActionConsumer- consumer of an action pressed in the popup.
-
-
Method Detail
-
updateValidationPopupAnchor
public void updateValidationPopupAnchor(org.zkoss.zul.Button button, java.lang.String action)Updates popup anchor with given button's parent. It enables navigation control from a popup: Ignore & next etc.- Parameters:
button- anchor component.action- id of an action which will be executed. It supportsConfigurableFlowDefinitions.WIZARD_NEXT,ConfigurableFlowDefinitions.WIZARD_DONE,ConfigurableFlowDefinitions.WIZARD_CUSTOM
-
updateValidationPopupAnchor
public void updateValidationPopupAnchor(java.util.Map<java.lang.String,org.zkoss.zul.Button> validationPopupAnchors)
Updates popup anchor with a button's parent. The method checks if maps has components for following keys in given order:ConfigurableFlowDefinitions.WIZARD_NEXT,ConfigurableFlowDefinitions.WIZARD_DONE,ConfigurableFlowDefinitions.WIZARD_CUSTOMif component is found it is used as an anchor.
- Parameters:
validationPopupAnchors- map of possible anchors.
-
updateValidationPopupAnchor
public void updateValidationPopupAnchor(org.zkoss.zk.ui.Component component)
Updates popup anchor with given component. Since there is no action defined navigation ctrl from popup will not be active (no Ignore & next etc. just close)
-
recalculatePosition
public void recalculatePosition()
Recalculates popup's window position on the screen.
-
handleCoordinates
protected void handleCoordinates(PopupCoordinates coordinates)
- Overrides:
handleCoordinatesin classDefaultValidationResultsPopup
-
initOkListener
protected void initOkListener(java.util.function.BiConsumer<java.lang.String,ValidationResult> popupCtrlActionConsumer)
-
isCtrlAction
protected boolean isCtrlAction(java.lang.String actionId)
-
getConfirmationLabel
protected java.lang.String getConfirmationLabel()
- Overrides:
getConfirmationLabelin classDefaultValidationResultsPopup
-
refreshPosition
protected void refreshPosition()
- Overrides:
refreshPositionin classDefaultValidationResultsPopup
-
-