Class SyncTypeAttributeDataTreeNode
- java.lang.Object
-
- com.hybris.backoffice.widgets.selectivesync.tree.SyncTypeAttributeDataTreeNode
-
- All Implemented Interfaces:
TreeItemSelectable
public class SyncTypeAttributeDataTreeNode extends java.lang.Object implements TreeItemSelectable
Model for attribute tree node. There are nodes of two kinds: TYPE (node) or ATTRIBUTE (leaf).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyncTypeAttributeDataTreeNode.SyncTypeAttributeTreeNodeType-
Nested classes/interfaces inherited from interface com.hybris.backoffice.widgets.selectivesync.tree.TreeItemSelectable
TreeItemSelectable.SelectionType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncTypeAttributeDataTreeNodecreateAttributeNode(SyncAttributeDescriptorConfigModel attributeDescriptorConfigModel)Create attribute tree node, it is always a leaf.static SyncTypeAttributeDataTreeNodecreateRootNode()Creates root node.static SyncTypeAttributeDataTreeNodecreateTypeNode(ComposedTypeModel typeModel)Creates type tree node.booleanequals(java.lang.Object o)org.zkoss.zul.CheckboxgetCheckbox()java.lang.ObjectgetData()Getter for data with node.TreeItemSelectable.SelectionTypegetSelection()java.lang.StringgetText()inthashCode()booleanisAttribute()Determines if this is an attribute node.booleanisType()Determines if this is an type node.voidsetSelection(TreeItemSelectable.SelectionType selectionType)protected voidupdateCheckboxSClass()
-
-
-
Method Detail
-
createTypeNode
public static SyncTypeAttributeDataTreeNode createTypeNode(ComposedTypeModel typeModel)
Creates type tree node. It can contain children (attributes nodes and type nodes).
-
createAttributeNode
public static SyncTypeAttributeDataTreeNode createAttributeNode(SyncAttributeDescriptorConfigModel attributeDescriptorConfigModel)
Create attribute tree node, it is always a leaf.
-
createRootNode
public static SyncTypeAttributeDataTreeNode createRootNode()
Creates root node. It should be added as root in tree model, ZK component tree, do not show this root node.
-
getData
public java.lang.Object getData()
Getter for data with node. It can be of type:ComposedTypeModelorSyncAttributeDescriptorConfigModelor null for root node.- Returns:
- data connected with node
-
getText
public java.lang.String getText()
-
getCheckbox
public org.zkoss.zul.Checkbox getCheckbox()
-
isAttribute
public boolean isAttribute()
Determines if this is an attribute node.- Returns:
- true if it is attribute node, false for type node
-
isType
public boolean isType()
Determines if this is an type node.- Returns:
- true if it is type node, false for attribute node.
-
setSelection
public void setSelection(TreeItemSelectable.SelectionType selectionType)
- Specified by:
setSelectionin interfaceTreeItemSelectable
-
getSelection
public TreeItemSelectable.SelectionType getSelection()
- Specified by:
getSelectionin interfaceTreeItemSelectable
-
updateCheckboxSClass
protected void updateCheckboxSClass()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-