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 SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionSelectionChangedEvent(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 SummaryModifier 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.ComponentEventgetSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
SelectionChangedEventpublic 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-- trueif the event originated from the client side,- falseotherwise.
- type- The type of the selected BPMN element.
- businessObjectJson- JSON representation of the business object associated with the selected element.
 
 
- 
- 
Method Details- 
getBusinessObjectJsonGets the JSON representation of the business object associated with the selected element.- Returns:
- The business object JSON.
 
- 
getElementTypeGets the type of the selected BPMN element.- Returns:
- The element type.
 
 
-