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.HasStyle
,BpmnViewer
,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-modeler/bpmn-viewer.ts")
public class BpmnViewerImpl
extends com.vaadin.flow.component.Component
implements BpmnViewer
- See Also:
-
Field Summary
Fields inherited from interface io.jmix.bpmflowui.uicomponent.bpmnviewer.BpmnViewer
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMarker
(AddMarkerCmd cmd) Adds a marker to an element (basically a css class).void
Removes a marker (css class) from an element.void
setBpmnXml
(String bpmnXml) void
setBpmnXml
(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) The callback will be called after the BPMN XML was actually set to the component.void
Sets an element color.Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
bpmnXml
-
-
Constructor Details
-
BpmnViewerImpl
-
-
Method Details
-
setBpmnXml
-
getBpmnXmlFromState
-
requestForBpmnXml
-
setBpmnXml
public void setBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) Description copied from interface:BpmnViewer
The callback will be called after the BPMN XML was actually set to the component. Invoke theBpmnViewer.setElementColor(io.jmix.bpmflowui.uicomponent.bpmnviewer.command.SetElementColorCmd)
in the callback- Specified by:
setBpmnXml
in interfaceBpmnViewer
-
setElementColor
Description copied from interface:BpmnViewer
Sets an element color.Usage example:
bpmnViewer.setElementColor(new SetElementColorCmd(elementId, "#000", //stroke color "#c2d5ed" //fill color ));
- Specified by:
setElementColor
in interfaceBpmnViewer
-
addMarker
Description copied from interface:BpmnViewer
Adds a marker to an element (basically a css class).A style for the "highlighted" marker is already defined in the viewer component css file.
- Specified by:
addMarker
in interfaceBpmnViewer
-
removeMarker
Description copied from interface:BpmnViewer
Removes a marker (css class) from an element.- Specified by:
removeMarker
in interfaceBpmnViewer
-