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
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionChildrenAddedEvent(OrgChart source, OrgChartItem item, List<OrgChartItem> newChildren, boolean fromClient) Creates a new children added event. -
Method Summary
Modifier and TypeMethodDescriptiongetItem()Gets the node that received new children.Gets the list of the newly added children.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
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 eventitem- the node that received new childrennewChildren- list of the newly added childrenfromClient- whether the event originated from the client side
-
-
Method Details
-
getItem
Gets the node that received new children.- Returns:
- the node
-
getNewChildren
Gets the list of the newly added children.- Returns:
- the list of new children
-