Class SelectionChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<BpmnModelerImpl>
io.jmix.bpmflowui.uicomponent.bpmnmodeler.event.SelectionChangedEvent
- All Implemented Interfaces:
Serializable
@DomEvent("ElementSelectionBpmEvent")
public class SelectionChangedEvent
extends com.vaadin.flow.component.ComponentEvent<BpmnModelerImpl>
Represents an event that is triggered when the selection of an element changes in the BPMN modeler.
This event is associated with the "ElementSelectionBpmEvent" DOM event and carries information about the selected BPMN element.
- See Also:
-
DomEvent
- Serialized Form
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionSelectionChangedEvent
(BpmnModelerImpl source, boolean fromClient, String type, String businessObjectJson) Creates a new selection changed event using the given source, indicator of whether the event originated from the client side or the server side, BPMN element type, and JSON representation of the associated business object. -
Method Summary
Modifier and TypeMethodDescriptionGets the JSON representation of the business object associated with the selected element.Gets the type of the selected BPMN element.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SelectionChangedEvent
public SelectionChangedEvent(BpmnModelerImpl source, boolean fromClient, @EventData("event.$type") String type, @EventData("event.businessObject") String businessObjectJson) Creates a new selection changed event using the given source, indicator of whether the event originated from the client side or the server side, BPMN element type, and JSON representation of the associated business object.- Parameters:
source
- The source component triggering the event.fromClient
-true
if the event originated from the client side,false
otherwise.type
- The type of the selected BPMN element.businessObjectJson
- JSON representation of the business object associated with the selected element.
-
-
Method Details
-
getBusinessObjectJson
Gets the JSON representation of the business object associated with the selected element.- Returns:
- The business object JSON.
-
getElementType
Gets the type of the selected BPMN element.- Returns:
- The element type.
-