Class NodesRemovedEvent

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

public class NodesRemovedEvent extends ComponentEvent<OrgChart>
Event fired when a node and its descendants are removed from the organization chart. Contains information about the removed node.
See Also:
  • Constructor Details

    • NodesRemovedEvent

      public NodesRemovedEvent(OrgChart source, Integer nodeId, boolean fromClient)
      Creates a new nodes removed event.
      Parameters:
      source - the chart component that fired the event
      nodeId - the ID of the removed node
      fromClient - whether the event originated from the client side
  • Method Details

    • getNodeId

      public Integer getNodeId()
      Gets the ID of the removed node.
      Returns:
      the node ID