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
Event fired when a new parent is added to the chart.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionParentAddedEvent(OrgChart source, OrgChartItem newParent, boolean fromClient) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionGets the item that was added as the new parent/root.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ParentAddedEvent
Creates a new event.- Parameters:
source- the component that fired the eventnewParent- the item that was added as the new parentfromClient- true if the event originated from the client
-
-
Method Details
-
getNewParent
Gets the item that was added as the new parent/root.- Returns:
- the new parent item
-