Class BpmnViewerImpl

java.lang.Object
com.vaadin.flow.component.Component
io.jmix.bpmflowui.uicomponent.bpmnviewer.BpmnViewerImpl
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

@Tag("jmix-bpmn-viewer") @NpmPackage(value="bpmn-js", version="12.1.0") @CssImport("bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css") @CssImport("bpmn-js/dist/assets/bpmn-js.css") @CssImport("bpmn-js/dist/assets/diagram-js.css") @JsModule("./src/bpmn-viewer/jmix-bpmn-viewer.js") public class BpmnViewerImpl extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    addBpmnXmlImportedListener(com.vaadin.flow.component.ComponentEventListener<BpmnXmlImportedEvent> listener)
    Adds a listener for the BpmnXmlImportedEvent.
    void
     
    void
    addSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener)
     
    protected void
    callJsFunction(String functionName, Serializable... args)
     
    protected void
    executePendingJs(com.vaadin.flow.internal.ExecutionContext context)
     
    void
    Fits current schema to the center of the viewer.
    @Nullable String
     
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
     
    void
     
    void
    setBpmnXml(@Nullable String bpmnXml)
    Sets the BPMN XML to be displayed.
    void
     
    void
    zoomByStep(int step)
    Zooms to the given step.

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasSize

    bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Field Details

  • Constructor Details

    • BpmnViewerImpl

      public BpmnViewerImpl()
  • Method Details

    • setBpmnXml

      public void setBpmnXml(@Nullable String bpmnXml)
      Sets the BPMN XML to be displayed.
      Parameters:
      bpmnXml - the BPMN XML to be set
    • getBpmnXmlFromState

      public @Nullable String getBpmnXmlFromState()
      Returns:
      currently set BPMN XML or null if not set
    • setElementColor

      public void setElementColor(SetElementColorCmd cmd)
    • addMarker

      public void addMarker(AddMarkerCmd cmd)
    • removeMarker

      public void removeMarker(RemoveMarkerCmd cmd)
    • addSelectedElementChangedListener

      public void addSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener)
    • addBpmnXmlImportedListener

      public com.vaadin.flow.shared.Registration addBpmnXmlImportedListener(com.vaadin.flow.component.ComponentEventListener<BpmnXmlImportedEvent> listener)
      Adds a listener for the BpmnXmlImportedEvent.
      Parameters:
      listener - listener to be added
      Returns:
      a registration object for removing the listener
    • zoomByStep

      public void zoomByStep(int step)
      Zooms to the given step. Positive values zoom in, negative values zoom out.
      Parameters:
      step - the step to zoom
    • fitSchema

      public void fitSchema()
      Fits current schema to the center of the viewer.
    • callJsFunction

      protected void callJsFunction(String functionName, Serializable... args)
    • executePendingJs

      protected void executePendingJs(com.vaadin.flow.internal.ExecutionContext context)
    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component