Class OrgChartItem

java.lang.Object
com.flowingcode.vaadin.addons.orgchart.OrgChartItem
All Implemented Interfaces:
Serializable

public class OrgChartItem extends Object implements Serializable
Author:
pbartolo
See Also:
  • Constructor Details

  • Method Details

    • getData

      public Map<String,String> getData()
      Return the map of custom properties.
    • setData

      public void setData(String name, String value)
      Add or remove a custom property.
      Parameters:
      name - the name of the custom property
      value - the value of the custom property
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getId

      public Integer getId()
    • setId

      public void setId(Integer id)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getClassName

      public String getClassName()
    • setClassName

      public void setClassName(String className)
    • getChildren

      public List<OrgChartItem> getChildren()
    • setChildren

      public void setChildren(List<OrgChartItem> children)
    • addChildren

      public void addChildren(OrgChartItem item)
    • isHybrid

      public boolean isHybrid()
      Indicates whether this item is a hybrid node. A hybrid node arranges its descendant children vertically instead of horizontally.
      Returns:
      true if this item is hybrid; false otherwise
    • setHybrid

      public void setHybrid(boolean hybrid)
      Sets whether this item is a hybrid node. When true, the item's descendant children will be arranged vertically.
      Parameters:
      hybrid - true to mark this node as hybrid; false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object