Class SiblingsAddedEvent

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

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

    • SiblingsAddedEvent

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

    • getItem

      public OrgChartItem getItem()
      Gets the node that received new siblings.
      Returns:
      the node
    • getNewSiblings

      public List<OrgChartItem> getNewSiblings()
      Gets the list of the newly added siblings.
      Returns:
      the list of new sibling