Class OrgChartItem
java.lang.Object
com.flowingcode.vaadin.addons.orgchart.OrgChartItem
- All Implemented Interfaces:
Serializable
- Author:
- pbartolo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrgChartItem(OrgChartItem original) OrgChartItem(Integer id, String name, String title) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildren(OrgChartItem item) booleangetData()Return the map of custom properties.getId()getName()getTitle()inthashCode()booleanisHybrid()Indicates whether this item is a hybrid node.voidsetChildren(List<OrgChartItem> children) voidsetClassName(String className) voidAdd or remove a custom property.voidsetHybrid(boolean hybrid) Sets whether this item is a hybrid node.voidvoidvoidtoString()
-
Constructor Details
-
OrgChartItem
-
OrgChartItem
-
-
Method Details
-
getData
Return the map of custom properties. -
setData
Add or remove a custom property.- Parameters:
name- the name of the custom propertyvalue- the value of the custom property
-
getName
-
setName
-
getId
-
setId
-
getTitle
-
setTitle
-
getClassName
-
setClassName
-
getChildren
-
setChildren
-
addChildren
-
isHybrid
public boolean isHybrid()Indicates whether this item is a hybrid node. A hybrid node arranges its descendant children vertically instead of horizontally.- Returns:
trueif this item is hybrid;falseotherwise
-
setHybrid
public void setHybrid(boolean hybrid) Sets whether this item is a hybrid node. Whentrue, the item's descendant children will be arranged vertically.- Parameters:
hybrid-trueto mark this node as hybrid;falseotherwise
-
hashCode
public int hashCode() -
equals
-
toString
-