Class ParentAddedEvent

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

public class ParentAddedEvent extends ComponentEvent<OrgChart>
Event fired when a new parent is added to the chart.
See Also:
  • Constructor Details

    • ParentAddedEvent

      public ParentAddedEvent(OrgChart source, OrgChartItem newParent, boolean fromClient)
      Creates a new event.
      Parameters:
      source - the component that fired the event
      newParent - the item that was added as the new parent
      fromClient - true if the event originated from the client
  • Method Details

    • getNewParent

      public OrgChartItem getNewParent()
      Gets the item that was added as the new parent/root.
      Returns:
      the new parent item