Class SyncTypeAttributeDataTreeItemRenderer
java.lang.Object
com.hybris.backoffice.widgets.selectivesync.tree.SyncTypeAttributeDataTreeItemRenderer
- All Implemented Interfaces:
org.zkoss.zul.TreeitemRenderer<SyncTypeAttributeDataTreeNode>
public class SyncTypeAttributeDataTreeItemRenderer
extends Object
implements org.zkoss.zul.TreeitemRenderer<SyncTypeAttributeDataTreeNode>
A custom TreeitemRenderer implementation to render synchronization attributes in a tree structure and the types they
belong to. Used by the
SelectiveSyncRenderer. It allows the changes made on attributes and type levels to be
propagated up and down the tree to show the status of the type accordingly.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContext for theSyncTypeAttributeDataTreeItemRenderer. -
Constructor Summary
ConstructorsConstructorDescriptionSyncTypeAttributeDataTreeItemRenderer(SyncTypeAttributeDataTreeItemRenderer.CreationContext creationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattributeNodeOnCheck(SyncTypeAttributeDataTreeNode treeNode, SyncAttributeDescriptorConfigModel syncAttributeConfig, org.zkoss.zk.ui.event.CheckEvent event) protected booleanprotected voidcreateAttributeLabel(org.zkoss.zul.Div labelDiv, String attributeLabel) protected org.zkoss.zul.DivcreateIconDiv(org.zkoss.zul.Div typeNodeDiv) protected org.zkoss.zul.TreecellcreateTreecell(org.zkoss.zul.Treerow treeRow) protected org.zkoss.zul.DivcreateTreeCellInnerCnt(org.zkoss.zul.Treecell treeCell) protected org.zkoss.zul.DivcreateTreeLabelContainer(org.zkoss.zul.Div typeNodeDiv) protected org.zkoss.zul.TreerowcreateTreerow(org.zkoss.zul.Treeitem treeitem) protected org.zkoss.zul.LabelcreateTypeLabel(org.zkoss.zul.Div labelDiv, String typeLabel) protected voidprotected voidopenSelectedSyncAttribute(SyncAttributeDescriptorConfigModel syncAttributeDescriptor, SyncTypeAttributeDataTreeNode treeNode) voidrender(org.zkoss.zul.Treeitem treeitem, SyncTypeAttributeDataTreeNode treeNode, int index) protected voidrenderAttributeNode(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) protected voidrenderNode(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) protected voidrenderNoReadAccess(org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) protected voidrenderTypeNode(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) protected voidtypeNodeOnCheck(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zk.ui.event.CheckEvent event) protected voidDeprecated, for removal: This API element is subject to removal in a future version.protected voidtypeNodeOnClick(org.zkoss.zk.ui.event.MouseEvent event)
-
Constructor Details
-
SyncTypeAttributeDataTreeItemRenderer
public SyncTypeAttributeDataTreeItemRenderer(SyncTypeAttributeDataTreeItemRenderer.CreationContext creationContext)
-
-
Method Details
-
render
public void render(org.zkoss.zul.Treeitem treeitem, SyncTypeAttributeDataTreeNode treeNode, int index) - Specified by:
renderin interfaceorg.zkoss.zul.TreeitemRenderer<SyncTypeAttributeDataTreeNode>
-
createTreerow
protected org.zkoss.zul.Treerow createTreerow(org.zkoss.zul.Treeitem treeitem) -
createTreecell
protected org.zkoss.zul.Treecell createTreecell(org.zkoss.zul.Treerow treeRow) -
createTreeCellInnerCnt
protected org.zkoss.zul.Div createTreeCellInnerCnt(org.zkoss.zul.Treecell treeCell) -
renderNode
protected void renderNode(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) -
canBeRead
-
renderNoReadAccess
protected void renderNoReadAccess(org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) -
renderTypeNode
protected void renderTypeNode(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) -
createTreeLabelContainer
protected org.zkoss.zul.Div createTreeLabelContainer(org.zkoss.zul.Div typeNodeDiv) -
createIconDiv
protected org.zkoss.zul.Div createIconDiv(org.zkoss.zul.Div typeNodeDiv) -
createTypeLabel
-
typeNodeOnClick
Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 usetypeNodeOnClick(MouseEvent event) -
typeNodeOnClick
protected void typeNodeOnClick(org.zkoss.zk.ui.event.MouseEvent event) -
noReadAccessOnClick
protected void noReadAccessOnClick() -
typeNodeOnCheck
protected void typeNodeOnCheck(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zk.ui.event.CheckEvent event) -
attributeNodeOnCheck
protected void attributeNodeOnCheck(SyncTypeAttributeDataTreeNode treeNode, SyncAttributeDescriptorConfigModel syncAttributeConfig, org.zkoss.zk.ui.event.CheckEvent event) -
renderAttributeNode
protected void renderAttributeNode(SyncTypeAttributeDataTreeNode treeNode, org.zkoss.zul.Div treeCellInnerCnt, org.zkoss.zul.Treecell treecell) -
createAttributeLabel
-
openSelectedSyncAttribute
protected void openSelectedSyncAttribute(SyncAttributeDescriptorConfigModel syncAttributeDescriptor, SyncTypeAttributeDataTreeNode treeNode)
-
typeNodeOnClick(MouseEvent event)