Class SyncTypeAttributeDataTreeItemRenderer
- java.lang.Object
-
- com.hybris.backoffice.widgets.selectivesync.tree.SyncTypeAttributeDataTreeItemRenderer
-
- All Implemented Interfaces:
org.zkoss.zul.TreeitemRenderer<SyncTypeAttributeDataTreeNode>
public class SyncTypeAttributeDataTreeItemRenderer extends java.lang.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 theSelectiveSyncRenderer. 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 Classes Modifier and Type Class Description static classSyncTypeAttributeDataTreeItemRenderer.CreationContextContext for theSyncTypeAttributeDataTreeItemRenderer.
-
Constructor Summary
Constructors Constructor Description SyncTypeAttributeDataTreeItemRenderer(SyncTypeAttributeDataTreeItemRenderer.CreationContext creationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidattributeNodeOnCheck(SyncTypeAttributeDataTreeNode treeNode, SyncAttributeDescriptorConfigModel syncAttributeConfig, org.zkoss.zk.ui.event.CheckEvent event)protected booleancanBeRead(java.lang.Object object)protected voidcreateAttributeLabel(org.zkoss.zul.Div labelDiv, java.lang.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, java.lang.String typeLabel)protected voidnoReadAccessOnClick()protected 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 voidtypeNodeOnClick()Deprecated.since 6.7 usetypeNodeOnClick(MouseEvent event)protected voidtypeNodeOnClick(org.zkoss.zk.ui.event.MouseEvent event)
-
-
-
Constructor Detail
-
SyncTypeAttributeDataTreeItemRenderer
public SyncTypeAttributeDataTreeItemRenderer(SyncTypeAttributeDataTreeItemRenderer.CreationContext creationContext)
-
-
Method Detail
-
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
protected boolean canBeRead(java.lang.Object object)
-
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
protected org.zkoss.zul.Label createTypeLabel(org.zkoss.zul.Div labelDiv, java.lang.String typeLabel)
-
typeNodeOnClick
@Deprecated protected void typeNodeOnClick()
Deprecated.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
protected void createAttributeLabel(org.zkoss.zul.Div labelDiv, java.lang.String attributeLabel)
-
openSelectedSyncAttribute
protected void openSelectedSyncAttribute(SyncAttributeDescriptorConfigModel syncAttributeDescriptor, SyncTypeAttributeDataTreeNode treeNode)
-
-