Class DefaultValidationResultsPopup
- 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
-
- 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
- Direct Known Subclasses:
ConfigurableFlowValidationResultsPopup
public class DefaultValidationResultsPopup extends org.zkoss.zul.Window implements Cleanable, Initializable
Renders result of validation in window when users clicks on editor area save button- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultValidationResultsPopup.HorizontalAlignmentstatic classDefaultValidationResultsPopup.VerticalAlignment
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEVENT_ON_HEIGHT_REQUEST
-
Constructor Summary
Constructors Constructor Description DefaultValidationResultsPopup(ValidatableContainer container, org.zkoss.zul.Listbox resultsList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOkListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener)voidcleanup()Cleans all references that will be no longer valid after component is detached from its parent.protected voidcreateComponents()protected java.lang.StringgetConfirmationLabel()protected ValidatableContainergetContainer()DefaultValidationResultsPopup.HorizontalAlignmentgetHorizontalAlignment()JSONMappergetMapper()protected org.zkoss.zul.ListboxgetResults()DefaultValidationResultsPopup.VerticalAlignmentgetVerticalAlignment()protected voidhandleCoordinates(PopupCoordinates coordinates)voidinitialize()Initializes all references that may be needed during its lifetime.protected voidinitializeComponents()protected voidinstallListeners()protected voidlayoutComponents()protected voidrefreshPosition()protected voidsendHeightRequestEvent()voidsetHorizontalAlignment(DefaultValidationResultsPopup.HorizontalAlignment horizontalAlignment)voidsetParent(org.zkoss.zk.ui.Component parent)voidsetVerticalAlignment(DefaultValidationResultsPopup.VerticalAlignment verticalAlignment)protected voidshowPopup()protected voidupdatePositionRelativelyToParent(java.lang.String left, java.lang.String top)-
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
-
EVENT_ON_HEIGHT_REQUEST
public static final java.lang.String EVENT_ON_HEIGHT_REQUEST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultValidationResultsPopup
public DefaultValidationResultsPopup(ValidatableContainer container, org.zkoss.zul.Listbox resultsList)
-
-
Method Detail
-
createComponents
protected void createComponents()
-
layoutComponents
protected void layoutComponents()
-
initializeComponents
protected void initializeComponents()
-
installListeners
protected void installListeners()
-
initialize
public void initialize()
Description copied from interface:InitializableInitializes all references that may be needed during its lifetime. Method is called right before a component is attached and displayed.Notice: if an object implements
Cleanablealso, then it is possible thatInitializable.initialize()will be called several times without callingCleanable.cleanup().- Specified by:
initializein interfaceInitializable
-
handleCoordinates
protected void handleCoordinates(PopupCoordinates coordinates)
-
setParent
public void setParent(org.zkoss.zk.ui.Component parent)
- Specified by:
setParentin interfaceorg.zkoss.zk.ui.Component- Overrides:
setParentin classorg.zkoss.zk.ui.AbstractComponent
-
getVerticalAlignment
public DefaultValidationResultsPopup.VerticalAlignment getVerticalAlignment()
-
setVerticalAlignment
public void setVerticalAlignment(DefaultValidationResultsPopup.VerticalAlignment verticalAlignment)
-
getHorizontalAlignment
public DefaultValidationResultsPopup.HorizontalAlignment getHorizontalAlignment()
-
setHorizontalAlignment
public void setHorizontalAlignment(DefaultValidationResultsPopup.HorizontalAlignment horizontalAlignment)
-
refreshPosition
protected void refreshPosition()
-
sendHeightRequestEvent
protected void sendHeightRequestEvent()
-
cleanup
public void cleanup()
Description copied from interface:CleanableCleans all references that will be no longer valid after component is detached from its parent.Notice: if an object implements
Initializablealso, then it is possible thatCleanable.cleanup()will be called several times without callingInitializable.initialize().
-
addOkListener
public void addOkListener(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener)
-
showPopup
protected void showPopup()
-
updatePositionRelativelyToParent
protected void updatePositionRelativelyToParent(java.lang.String left, java.lang.String top)
-
getConfirmationLabel
protected java.lang.String getConfirmationLabel()
-
getContainer
protected ValidatableContainer getContainer()
-
getResults
protected org.zkoss.zul.Listbox getResults()
-
getMapper
public JSONMapper getMapper()
-
-