Class SelectionChangedEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<BpmnViewerImpl>
io.jmix.bpmflowui.uicomponent.bpmnviewer.event.SelectionChangedEvent
All Implemented Interfaces:
Serializable

@DomEvent("ElementSelectionBpmEvent") public class SelectionChangedEvent extends com.vaadin.flow.component.ComponentEvent<BpmnViewerImpl>
Represents an event that is triggered when the selection of an element changes in the BPMN viewer. This event is associated with the "ElementSelectionBpmEvent" DOM event and carries information about the selected BPMN element.
See Also:
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectionChangedEvent(BpmnViewerImpl 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 Type
    Method
    Description
    Gets 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SelectionChangedEvent

      public SelectionChangedEvent(BpmnViewerImpl 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

      public String getBusinessObjectJson()
      Gets the JSON representation of the business object associated with the selected element.
      Returns:
      The business object JSON.
    • getElementType

      public String getElementType()
      Gets the type of the selected BPMN element.
      Returns:
      The element type.