Class SelectionChangedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<BpmnModeler>
org.vaadin.addons.componentfactory.bpmn.SelectionChangedEvent
- All Implemented Interfaces:
Serializable
@DomEvent("vcf-bpmn-selection-changed")
public class SelectionChangedEvent
extends com.vaadin.flow.component.ComponentEvent<BpmnModeler>
Fired when the user selects or deselects diagram elements.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA selected element: its id and BPMN type, such as bpmn:UserTask. -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSelectionChangedEvent(BpmnModeler source, boolean fromClient, String elementsJson) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SelectionChangedEvent
public SelectionChangedEvent(BpmnModeler source, boolean fromClient, @EventData("event.detail.elements") String elementsJson)
-
-
Method Details
-
getElementId
- Returns:
- the id of the selected element, the first one if several are
selected, or
nullif none is
-
getElementType
- Returns:
- the BPMN type of the element
getElementId()refers to, ornullif none is selected
-
getSelectedElements
- Returns:
- every selected element, in selection order; empty if none
-