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:
  • Constructor Details

    • SelectionChangedEvent

      public SelectionChangedEvent(BpmnModeler source, boolean fromClient, @EventData("event.detail.elements") String elementsJson)
  • Method Details

    • getElementId

      public String getElementId()
      Returns:
      the id of the selected element, the first one if several are selected, or null if none is
    • getElementType

      public String getElementType()
      Returns:
      the BPMN type of the element getElementId() refers to, or null if none is selected
    • getSelectedElements

      public List<SelectionChangedEvent.SelectedElement> getSelectedElements()
      Returns:
      every selected element, in selection order; empty if none