Class DetailsView
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Div
-
- com.hybris.backoffice.widgets.selectivesync.detailsview.DetailsView
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl
public class DetailsView extends org.zkoss.zul.DivDetails view forSelectiveSyncRenderer.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDetailsView.CreationContextContext for creatingDetailsView.
-
Field Summary
Fields Modifier and Type Field Description protected booleaneditableprotected com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacadepermissionFacadeprotected com.hybris.cockpitng.engine.WidgetInstanceManagerwidgetInstanceManagerprotected static java.lang.StringYTESTID_COPY_BY_VALUE_ATTRIBUTEprotected static java.lang.StringYTESTID_NO_READ_ACCESS_LABELprotected static java.lang.StringYTESTID_PARTIALLY_TRANSLATABLE_ATTRIBUTEprotected static java.lang.StringYTESTID_SYNC_ATTRIBUTEprotected static java.lang.StringYTESTID_UNTRANSLATABLE_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description DetailsView(DetailsView.CreationContext creationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanChange(java.lang.Object object, java.lang.String property)protected booleancanRead(java.lang.Object object, java.lang.String property)voidclearView()Clear viewprotected org.zkoss.zul.CheckboxcreateAttributeCheckbox(boolean checked)protected org.zkoss.zul.CheckboxcreateCopyByValue(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)protected org.zkoss.zul.DivcreateDetailsListItem(org.zkoss.zk.ui.Component component)protected org.zkoss.zul.DivcreateNoReadAccess()protected org.zkoss.zul.CheckboxcreatePartiallyTranslatable(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)protected org.zkoss.zul.CheckboxcreateSynchronizeAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)protected org.zkoss.zul.CheckboxcreateUntranslatable(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)voiddisplay(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)Displays synchronization attributes values from syncAttributeConfig.booleanequals(java.lang.Object o)protected java.lang.StringgetLabel(java.lang.String label)inthashCode()protected voidrenderCopyByValueAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)protected voidrenderPartiallyTranslatableAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)protected voidrenderSynchronizeAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)protected voidrenderUntranslatableAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)-
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
-
-
-
-
Field Detail
-
YTESTID_SYNC_ATTRIBUTE
protected static final java.lang.String YTESTID_SYNC_ATTRIBUTE
- See Also:
- Constant Field Values
-
YTESTID_COPY_BY_VALUE_ATTRIBUTE
protected static final java.lang.String YTESTID_COPY_BY_VALUE_ATTRIBUTE
- See Also:
- Constant Field Values
-
YTESTID_UNTRANSLATABLE_ATTRIBUTE
protected static final java.lang.String YTESTID_UNTRANSLATABLE_ATTRIBUTE
- See Also:
- Constant Field Values
-
YTESTID_PARTIALLY_TRANSLATABLE_ATTRIBUTE
protected static final java.lang.String YTESTID_PARTIALLY_TRANSLATABLE_ATTRIBUTE
- See Also:
- Constant Field Values
-
YTESTID_NO_READ_ACCESS_LABEL
protected static final java.lang.String YTESTID_NO_READ_ACCESS_LABEL
- See Also:
- Constant Field Values
-
editable
protected final boolean editable
-
widgetInstanceManager
protected final transient com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager
-
permissionFacade
protected final transient com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade
-
-
Constructor Detail
-
DetailsView
public DetailsView(DetailsView.CreationContext creationContext)
-
-
Method Detail
-
display
public void display(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
Displays synchronization attributes values from syncAttributeConfig. When one of the value is change detailsViewAttributeValueChangeListener is alerted.- Parameters:
syncAttributeConfig- values to displaydetailsViewAttributeValueChangeListener- listener for attribute changes
-
renderSynchronizeAttribute
protected void renderSynchronizeAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
renderCopyByValueAttribute
protected void renderCopyByValueAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
renderUntranslatableAttribute
protected void renderUntranslatableAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
renderPartiallyTranslatableAttribute
protected void renderPartiallyTranslatableAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
createDetailsListItem
protected org.zkoss.zul.Div createDetailsListItem(org.zkoss.zk.ui.Component component)
-
createSynchronizeAttribute
protected org.zkoss.zul.Checkbox createSynchronizeAttribute(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
createCopyByValue
protected org.zkoss.zul.Checkbox createCopyByValue(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
createUntranslatable
protected org.zkoss.zul.Checkbox createUntranslatable(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
createPartiallyTranslatable
protected org.zkoss.zul.Checkbox createPartiallyTranslatable(SyncAttributeDescriptorConfigModel syncAttributeConfig, DetailsViewAttributeValueChangeListener detailsViewAttributeValueChangeListener)
-
canRead
protected boolean canRead(java.lang.Object object, java.lang.String property)
-
canChange
protected boolean canChange(java.lang.Object object, java.lang.String property)
-
createAttributeCheckbox
protected org.zkoss.zul.Checkbox createAttributeCheckbox(boolean checked)
-
getLabel
protected java.lang.String getLabel(java.lang.String label)
-
createNoReadAccess
protected org.zkoss.zul.Div createNoReadAccess()
-
clearView
public void clearView()
Clear view
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-