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 SummaryFieldsFields inherited from interface io.jmix.bpmflowui.uicomponent.bpmnviewer.BpmnViewerNAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMarker(AddMarkerCmd cmd) Adds a marker to a BPMN element using the specified command.voidaddSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Adds a listener to handle BPMN diagram element selection changes.voidRemoves a marker from a BPMN element using the specified command.voidsetBpmnXml(String bpmnXml) voidsetBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) Sets the BPMN XML for the viewer component and invokes the callback after the BPMN XML is set.voidSets the color of a BPMN element using the specified command.Methods inherited from class com.vaadin.flow.component.ComponentaddListener, 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, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElementgetElementMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
- 
Field Details- 
bpmnXml
 
- 
- 
Constructor Details- 
BpmnViewerImplpublic BpmnViewerImpl()
 
- 
- 
Method Details- 
setBpmnXml
- 
getBpmnXmlFromState
- 
requestForBpmnXml
- 
setBpmnXmlpublic void setBpmnXml(String bpmnXml, com.vaadin.flow.function.SerializableConsumer<elemental.json.JsonValue> callback) Description copied from interface:BpmnViewerSets the BPMN XML for the viewer component and invokes the callback after the BPMN XML is set.- Specified by:
- setBpmnXmlin interface- BpmnViewer
- Parameters:
- bpmnXml- The BPMN XML to be set.
- callback- A callback to be invoked after the BPMN XML is set.
 
- 
setElementColorDescription copied from interface:BpmnViewerSets the color of a BPMN element using the specified command.Usage example: bpmnViewer.setElementColor(new SetElementColorCmd(elementId, "#000", //stroke color "#c2d5ed" //fill color ));- Specified by:
- setElementColorin interface- BpmnViewer
- Parameters:
- cmd- The command to set the element color.
 
- 
addMarkerDescription copied from interface:BpmnViewerAdds a marker to a BPMN element using the specified command.A style for the "highlighted" marker is already defined in the viewer component css file. - Specified by:
- addMarkerin interface- BpmnViewer
- Parameters:
- cmd- The command to add a marker to an element.
 
- 
removeMarkerDescription copied from interface:BpmnViewerRemoves a marker from a BPMN element using the specified command.- Specified by:
- removeMarkerin interface- BpmnViewer
- Parameters:
- cmd- The command to remove a marker from an element.
 
- 
addSelectedElementChangedListenerpublic void addSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Description copied from interface:BpmnViewerAdds a listener to handle BPMN diagram element selection changes.- Specified by:
- addSelectedElementChangedListenerin interface- BpmnViewer
- Parameters:
- listener- The listener to handle selection changes.
 
 
-