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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddBpmnXmlImportedListener(com.vaadin.flow.component.ComponentEventListener<BpmnXmlImportedEvent> listener) Adds a listener for theBpmnXmlImportedEvent.voidaddMarker(AddMarkerCmd cmd) voidaddSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) protected voidcallJsFunction(String functionName, Serializable... args) protected voidexecutePendingJs(com.vaadin.flow.internal.ExecutionContext context) voidFits current schema to the center of the viewer.@Nullable Stringprotected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) voidvoidsetBpmnXml(@Nullable String bpmnXml) Sets the BPMN XML to be displayed.voidvoidzoomByStep(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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
pendingJses
-
rendered
protected boolean rendered
-
-
Constructor Details
-
BpmnViewerImpl
public BpmnViewerImpl()
-
-
Method Details
-
setBpmnXml
Sets the BPMN XML to be displayed.- Parameters:
bpmnXml- the BPMN XML to be set
-
getBpmnXmlFromState
- Returns:
- currently set BPMN XML or
nullif not set
-
setElementColor
-
addMarker
-
removeMarker
-
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 theBpmnXmlImportedEvent.- 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
-
executePendingJs
protected void executePendingJs(com.vaadin.flow.internal.ExecutionContext context) -
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.Component
-