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