Package com.hybris.cockpitng.components
Class Widgetslot
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Div
-
- org.zkoss.zul.Idspace
-
- com.hybris.cockpitng.components.Widgetslot
-
- All Implemented Interfaces:
WidgetContainer,Cleanable,Initializable,java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.AfterCompose,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.IdSpace,org.zkoss.zk.ui.sys.ComponentCtrl
public class Widgetslot extends org.zkoss.zul.Idspace implements WidgetContainer, Cleanable, Initializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_WIDGET_CONTROLLERstatic java.lang.StringATTRIBUTE_WIDGET_MODEL
-
Constructor Summary
Constructors Constructor Description Widgetslot()
-
Method Summary
-
Methods inherited from class org.zkoss.zul.impl.XulElement
clone, 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, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, 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, beforeChildAdded, 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, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, 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, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, 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
-
ATTRIBUTE_WIDGET_MODEL
public static final java.lang.String ATTRIBUTE_WIDGET_MODEL
- See Also:
- Constant Field Values
-
ATTRIBUTE_WIDGET_CONTROLLER
public static final java.lang.String ATTRIBUTE_WIDGET_CONTROLLER
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterCompose
public void afterCompose()
- Specified by:
afterComposein interfaceorg.zkoss.zk.ui.ext.AfterCompose
-
updateView
public void updateView()
Description copied from interface:WidgetContainerRedraws this component, i.e. clears its current children and renders content again.- Specified by:
updateViewin interfaceWidgetContainer
-
updateChildren
public void updateChildren(java.lang.String childSlotId)
-
setSlotID
public void setSlotID(java.lang.String slotID)
- Parameters:
slotID- the slotID to set
-
getSettings
public java.util.Map<java.lang.String,java.lang.Object> getSettings()
-
setParentChildrenContainer
public void setParentChildrenContainer(Widgetchildren parentChildrenContainer)
- Parameters:
parentChildrenContainer- the parentChildrenContainer to set
-
getParentChildrenContainer
public Widgetchildren getParentChildrenContainer()
- Returns:
- the parentChildrenContainer
-
getViewModel
public WidgetModel getViewModel()
-
getViewController
public <C extends WidgetController> C getViewController()
-
getSlotID
public java.lang.String getSlotID()
-
getWidgetInstance
public WidgetInstance getWidgetInstance()
-
getParentWidgetInstance
public WidgetInstance getParentWidgetInstance()
-
setWidgetInstance
public void setWidgetInstance(WidgetInstance currentWidgetInstance)
-
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().
-
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
-
getWidgetDefinition
public WidgetDefinition getWidgetDefinition(Widget widget)
-
setInvisibleContainer
public void setInvisibleContainer(org.zkoss.zul.Div invisibleContainer)
-
getInvisibleContainer
public org.zkoss.zul.Div getInvisibleContainer()
-
getWidgetService
protected WidgetService getWidgetService()
-
getWidgetInstanceFacade
protected WidgetInstanceFacade getWidgetInstanceFacade()
-
getWidgetDefinitionService
protected CockpitComponentDefinitionService getWidgetDefinitionService()
-
getCockpitWidgetEngine
public CockpitWidgetEngine getCockpitWidgetEngine()
-
getWidgetUtils
public WidgetUtils getWidgetUtils()
-
getRulesEngine
public WidgetTemplateRulesEngine getRulesEngine()
-
getTemplateNotificationStack
public NotificationStack getTemplateNotificationStack()
-
-