Class SyncTypeAttributeDataTreeNode
java.lang.Object
com.hybris.backoffice.widgets.selectivesync.tree.SyncTypeAttributeDataTreeNode
- All Implemented Interfaces:
TreeItemSelectable
Model for attribute tree node. There are nodes of two kinds: TYPE (node) or ATTRIBUTE (leaf).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNested classes/interfaces inherited from interface com.hybris.backoffice.widgets.selectivesync.tree.TreeItemSelectable
TreeItemSelectable.SelectionType -
Method Summary
Modifier and TypeMethodDescriptioncreateAttributeNode(SyncAttributeDescriptorConfigModel attributeDescriptorConfigModel) Create attribute tree node, it is always a leaf.Creates root node.createTypeNode(ComposedTypeModel typeModel) Creates type tree node.booleanorg.zkoss.zul.CheckboxgetData()Getter for data with node.getText()inthashCode()booleanDetermines if this is an attribute node.booleanisType()Determines if this is an type node.voidsetSelection(TreeItemSelectable.SelectionType selectionType) protected void
-
Method Details
-
createTypeNode
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
Creates root node. It should be added as root in tree model, ZK component tree, do not show this root node. -
getData
Getter for data with node. It can be of type:ComposedTypeModelorSyncAttributeDescriptorConfigModelor null for root node.- Returns:
- data connected with node
-
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
- Specified by:
setSelectionin interfaceTreeItemSelectable
-
getSelection
- Specified by:
getSelectionin interfaceTreeItemSelectable
-
updateCheckboxSClass
protected void updateCheckboxSClass() -
equals
-
hashCode
public int hashCode()
-