Class ChildrenAddedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<OrgChart>
com.flowingcode.vaadin.addons.orgchart.event.ChildrenAddedEvent
All Implemented Interfaces:
Serializable

public class ChildrenAddedEvent extends ComponentEvent<OrgChart>
Event fired when children are added to a node in the organization chart. Contains information about both the parent node and the newly added children.
See Also:
  • Constructor Details

    • ChildrenAddedEvent

      public ChildrenAddedEvent(OrgChart source, OrgChartItem item, List<OrgChartItem> newChildren, boolean fromClient)
      Creates a new children added event.
      Parameters:
      source - the chart component that fired the event
      item - the node that received new children
      newChildren - list of the newly added children
      fromClient - whether the event originated from the client side
  • Method Details

    • getItem

      public OrgChartItem getItem()
      Gets the node that received new children.
      Returns:
      the node
    • getNewChildren

      public List<OrgChartItem> getNewChildren()
      Gets the list of the newly added children.
      Returns:
      the list of new children